From 895357be999ffdeefac83d0b9296c91171b05cd0 Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Fri, 19 Jun 2009 03:50:30 +0000 Subject: Philips SA9200: add the UI sim git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21348 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/UI-sa9200.bmp | Bin 0 -> 405474 bytes uisimulator/sdl/button.c | 38 +++++++++++++++++++++++++++++++++++++- uisimulator/sdl/uisdl.h | 7 +++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 uisimulator/sdl/UI-sa9200.bmp (limited to 'uisimulator/sdl') diff --git a/uisimulator/sdl/UI-sa9200.bmp b/uisimulator/sdl/UI-sa9200.bmp new file mode 100644 index 0000000000..b801640988 Binary files /dev/null and b/uisimulator/sdl/UI-sa9200.bmp 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) case SDLK_KP9: new_btn = BUTTON_VOL_UP; break; - +#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD + case SDLK_KP4: + case SDLK_LEFT: + new_btn = BUTTON_REW; + break; + case SDLK_KP6: + case SDLK_RIGHT: + new_btn = BUTTON_FFWD; + 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_PLAY; + break; + case SDLK_KP7: + new_btn = BUTTON_LEFT; + break; + case SDLK_KP9: + new_btn = BUTTON_RIGHT; + break; + case SDLK_KP_ENTER: + case SDLK_RETURN: + new_btn = BUTTON_POWER; + break; + case SDLK_PAGEUP: + new_btn = BUTTON_VOL_UP; + break; + case SDLK_PAGEDOWN: + new_btn = BUTTON_VOL_DOWN; + break; #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD case SDLK_KP4: 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 @@ #define UI_LCD_POSX 38 /* x position of lcd */ #define UI_LCD_POSY 38 /* y position of lcd */ +#elif defined(PHILIPS_SA9200) +#define UI_TITLE "Philips GoGear SA9200" +#define UI_WIDTH 233 /* width of GUI window */ +#define UI_HEIGHT 435 /* height of GUI window */ +#define UI_LCD_POSX 50 /* x position of lcd */ +#define UI_LCD_POSY 50 /* y position of lcd */ + #elif defined(PHILIPS_HDD1630) #define UI_TITLE "Philips GoGear HDD1630" #define UI_WIDTH 407 /* width of GUI window */ -- cgit