From 498e95b986047af71902e74646d8d8857f6ccd40 Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Fri, 2 Jan 2009 04:35:13 +0000 Subject: Add the sim build for the Philips HDD1630. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19639 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/UI-hdd1630.bmp | Bin 0 -> 478638 bytes uisimulator/sdl/button.c | 41 +++++++++++++++++++++++++++++++++++++++++ uisimulator/sdl/uisdl.h | 10 ++++++++++ 3 files changed, 51 insertions(+) create mode 100644 uisimulator/sdl/UI-hdd1630.bmp diff --git a/uisimulator/sdl/UI-hdd1630.bmp b/uisimulator/sdl/UI-hdd1630.bmp new file mode 100644 index 0000000000..ac665cf96d Binary files /dev/null and b/uisimulator/sdl/UI-hdd1630.bmp 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 */ -- cgit v1.2.3