diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/sdl/UI-hdd1630.bmp | bin | 0 -> 478638 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 41 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 10 |
3 files changed, 51 insertions, 0 deletions
diff --git a/uisimulator/sdl/UI-hdd1630.bmp b/uisimulator/sdl/UI-hdd1630.bmp new file mode 100644 index 0000000000..ac665cf96d --- /dev/null +++ b/uisimulator/sdl/UI-hdd1630.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 6246228dd8..db96b404ba 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -1049,6 +1049,47 @@ void button_event(int key, bool pressed) | |||
1049 | case SDLK_KP9: | 1049 | case SDLK_KP9: |
1050 | new_btn = BUTTON_VOLUP; | 1050 | new_btn = BUTTON_VOLUP; |
1051 | break; | 1051 | break; |
1052 | |||
1053 | #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD | ||
1054 | case SDLK_KP4: | ||
1055 | case SDLK_LEFT: | ||
1056 | new_btn = BUTTON_LEFT; | ||
1057 | break; | ||
1058 | case SDLK_KP6: | ||
1059 | case SDLK_RIGHT: | ||
1060 | new_btn = BUTTON_RIGHT; | ||
1061 | break; | ||
1062 | case SDLK_KP8: | ||
1063 | case SDLK_UP: | ||
1064 | new_btn = BUTTON_UP; | ||
1065 | break; | ||
1066 | case SDLK_KP2: | ||
1067 | case SDLK_DOWN: | ||
1068 | new_btn = BUTTON_DOWN; | ||
1069 | break; | ||
1070 | case SDLK_KP5: | ||
1071 | case SDLK_SPACE: | ||
1072 | new_btn = BUTTON_SELECT; | ||
1073 | break; | ||
1074 | case SDLK_KP7: | ||
1075 | case SDLK_ESCAPE: | ||
1076 | new_btn = BUTTON_POWER; | ||
1077 | break; | ||
1078 | case SDLK_KP1: | ||
1079 | new_btn = BUTTON_PLAYLIST; | ||
1080 | break; | ||
1081 | case SDLK_KP9: | ||
1082 | new_btn = BUTTON_VOL_UP; | ||
1083 | break; | ||
1084 | case SDLK_KP3: | ||
1085 | new_btn = BUTTON_VOL_DOWN; | ||
1086 | break; | ||
1087 | case SDLK_KP_MINUS: | ||
1088 | new_btn = BUTTON_MENU; | ||
1089 | break; | ||
1090 | case SDLK_KP_PLUS: | ||
1091 | new_btn = BUTTON_VIEW; | ||
1092 | break; | ||
1052 | #else | 1093 | #else |
1053 | #error No keymap defined! | 1094 | #error No keymap defined! |
1054 | #endif /* CONFIG_KEYPAD */ | 1095 | #endif /* CONFIG_KEYPAD */ |
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index cb4158500c..c04f3cfaad 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h | |||
@@ -466,6 +466,16 @@ | |||
466 | #define UI_LCD_SPLIT_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ | 466 | #define UI_LCD_SPLIT_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ |
467 | #define UI_LCD_SPLIT_FGCOLORLIGHT 255, 230, 15 /* foreground color of LCD (backlight) */ | 467 | #define UI_LCD_SPLIT_FGCOLORLIGHT 255, 230, 15 /* foreground color of LCD (backlight) */ |
468 | 468 | ||
469 | #elif defined(PHILIPS_HDD1630) | ||
470 | #define UI_TITLE "Philips GoGear HDD1630" | ||
471 | #define UI_WIDTH 407 /* width of GUI window */ | ||
472 | #define UI_HEIGHT 391 /* height of GUI window */ | ||
473 | /* high-colour */ | ||
474 | #define UI_LCD_POSX 143 /* x position of lcd */ | ||
475 | #define UI_LCD_POSY 27 /* y position of lcd */ | ||
476 | #define UI_LCD_WIDTH LCD_WIDTH | ||
477 | #define UI_LCD_HEIGHT LCD_HEIGHT | ||
478 | |||
469 | #endif | 479 | #endif |
470 | extern SDL_Surface *gui_surface; | 480 | extern SDL_Surface *gui_surface; |
471 | extern bool background; /* True if the background image is enabled */ | 481 | extern bool background; /* True if the background image is enabled */ |