summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl
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 /uisimulator/sdl
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
Diffstat (limited to 'uisimulator/sdl')
-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)
case SDLK_KP9:
new_btn = BUTTON_VOLUP;
break;
+
+#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
+ case SDLK_KP4:
+ case SDLK_LEFT:
+ new_btn = BUTTON_LEFT;
+ break;
+ case SDLK_KP6:
+ case SDLK_RIGHT:
+ new_btn = BUTTON_RIGHT;
+ break;
+ case SDLK_KP8:
+ case SDLK_UP:
+ new_btn = BUTTON_UP;
+ break;
+ case SDLK_KP2:
+ case SDLK_DOWN:
+ new_btn = BUTTON_DOWN;
+ break;
+ case SDLK_KP5:
+ case SDLK_SPACE:
+ new_btn = BUTTON_SELECT;
+ break;
+ case SDLK_KP7:
+ case SDLK_ESCAPE:
+ new_btn = BUTTON_POWER;
+ break;
+ case SDLK_KP1:
+ new_btn = BUTTON_PLAYLIST;
+ break;
+ case SDLK_KP9:
+ new_btn = BUTTON_VOL_UP;
+ break;
+ case SDLK_KP3:
+ new_btn = BUTTON_VOL_DOWN;
+ break;
+ case SDLK_KP_MINUS:
+ new_btn = BUTTON_MENU;
+ break;
+ case SDLK_KP_PLUS:
+ new_btn = BUTTON_VIEW;
+ break;
#else
#error No keymap defined!
#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 @@
#define UI_LCD_SPLIT_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
#define UI_LCD_SPLIT_FGCOLORLIGHT 255, 230, 15 /* foreground color of LCD (backlight) */
+#elif defined(PHILIPS_HDD1630)
+#define UI_TITLE "Philips GoGear HDD1630"
+#define UI_WIDTH 407 /* width of GUI window */
+#define UI_HEIGHT 391 /* height of GUI window */
+/* high-colour */
+#define UI_LCD_POSX 143 /* x position of lcd */
+#define UI_LCD_POSY 27 /* y position of lcd */
+#define UI_LCD_WIDTH LCD_WIDTH
+#define UI_LCD_HEIGHT LCD_HEIGHT
+
#endif
extern SDL_Surface *gui_surface;
extern bool background; /* True if the background image is enabled */