diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-06-19 03:50:30 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-06-19 03:50:30 +0000 |
commit | 895357be999ffdeefac83d0b9296c91171b05cd0 (patch) | |
tree | 2af2cc5e828220e6de0a11b412288c2fd13ac525 /uisimulator/sdl | |
parent | df8f64d3a4d927a6880040c70ab2fee93f4c901c (diff) |
Philips SA9200: add the UI sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21348 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/UI-sa9200.bmp | bin | 0 -> 405474 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 38 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 7 |
3 files changed, 44 insertions, 1 deletions
diff --git a/uisimulator/sdl/UI-sa9200.bmp b/uisimulator/sdl/UI-sa9200.bmp Binary files differnew file mode 100644 index 0000000000..b801640988 --- /dev/null +++ b/uisimulator/sdl/UI-sa9200.bmp 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 */ |