summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2009-01-02 04:35:13 +0000
committerMark Arigo <markarigo@gmail.com>2009-01-02 04:35:13 +0000
commit498e95b986047af71902e74646d8d8857f6ccd40 (patch)
tree17d070921c99873b37720ee3bbb20089cdac9d4a
parent43ffbdb5abf09b986b993925598579f4c8f97d4b (diff)
downloadrockbox-498e95b986047af71902e74646d8d8857f6ccd40.tar.gz
rockbox-498e95b986047af71902e74646d8d8857f6ccd40.zip
Add the sim build for the Philips HDD1630.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19639 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/sdl/UI-hdd1630.bmpbin0 -> 478638 bytes
-rw-r--r--uisimulator/sdl/button.c41
-rw-r--r--uisimulator/sdl/uisdl.h10
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
470extern SDL_Surface *gui_surface; 480extern SDL_Surface *gui_surface;
471extern bool background; /* True if the background image is enabled */ 481extern bool background; /* True if the background image is enabled */