summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/sdl/UI-sa9200.bmpbin0 -> 405474 bytes
-rw-r--r--uisimulator/sdl/button.c38
-rw-r--r--uisimulator/sdl/uisdl.h7
3 files changed, 44 insertions, 1 deletions
diff --git a/uisimulator/sdl/UI-sa9200.bmp b/uisimulator/sdl/UI-sa9200.bmp
new file mode 100644
index 0000000000..b801640988
--- /dev/null
+++ b/uisimulator/sdl/UI-sa9200.bmp
Binary files differ
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 7ceaa5f788..da9af641c8 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -1047,7 +1047,43 @@ void button_event(int key, bool pressed)
1047 case SDLK_KP9: 1047 case SDLK_KP9:
1048 new_btn = BUTTON_VOL_UP; 1048 new_btn = BUTTON_VOL_UP;
1049 break; 1049 break;
1050 1050#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
1051 case SDLK_KP4:
1052 case SDLK_LEFT:
1053 new_btn = BUTTON_REW;
1054 break;
1055 case SDLK_KP6:
1056 case SDLK_RIGHT:
1057 new_btn = BUTTON_FFWD;
1058 break;
1059 case SDLK_KP8:
1060 case SDLK_UP:
1061 new_btn = BUTTON_UP;
1062 break;
1063 case SDLK_KP2:
1064 case SDLK_DOWN:
1065 new_btn = BUTTON_DOWN;
1066 break;
1067 case SDLK_KP5:
1068 case SDLK_SPACE:
1069 new_btn = BUTTON_PLAY;
1070 break;
1071 case SDLK_KP7:
1072 new_btn = BUTTON_LEFT;
1073 break;
1074 case SDLK_KP9:
1075 new_btn = BUTTON_RIGHT;
1076 break;
1077 case SDLK_KP_ENTER:
1078 case SDLK_RETURN:
1079 new_btn = BUTTON_POWER;
1080 break;
1081 case SDLK_PAGEUP:
1082 new_btn = BUTTON_VOL_UP;
1083 break;
1084 case SDLK_PAGEDOWN:
1085 new_btn = BUTTON_VOL_DOWN;
1086 break;
1051#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD 1087#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
1052 case SDLK_KP4: 1088 case SDLK_KP4:
1053 case SDLK_LEFT: 1089 case SDLK_LEFT:
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 9dbfd82ce9..0fe0463b60 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -292,6 +292,13 @@
292#define UI_LCD_POSX 38 /* x position of lcd */ 292#define UI_LCD_POSX 38 /* x position of lcd */
293#define UI_LCD_POSY 38 /* y position of lcd */ 293#define UI_LCD_POSY 38 /* y position of lcd */
294 294
295#elif defined(PHILIPS_SA9200)
296#define UI_TITLE "Philips GoGear SA9200"
297#define UI_WIDTH 233 /* width of GUI window */
298#define UI_HEIGHT 435 /* height of GUI window */
299#define UI_LCD_POSX 50 /* x position of lcd */
300#define UI_LCD_POSY 50 /* y position of lcd */
301
295#elif defined(PHILIPS_HDD1630) 302#elif defined(PHILIPS_HDD1630)
296#define UI_TITLE "Philips GoGear HDD1630" 303#define UI_TITLE "Philips GoGear HDD1630"
297#define UI_WIDTH 407 /* width of GUI window */ 304#define UI_WIDTH 407 /* width of GUI window */