diff options
author | Will Robertson <aliask@rockbox.org> | 2008-02-08 08:33:17 +0000 |
---|---|---|
committer | Will Robertson <aliask@rockbox.org> | 2008-02-08 08:33:17 +0000 |
commit | fffa26987abed798b6fda1334724fbce6fa92d44 (patch) | |
tree | 12c9d9676de44502c6cd46b09fed83ea87a26b65 /uisimulator | |
parent | bc057f91b55e95ba63810bd9c3a7b1734cebdfce (diff) |
UI Simulator for Gigabeat S.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16246 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rwxr-xr-x | uisimulator/sdl/UI-gigabeats.bmp | bin | 0 -> 1238454 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 39 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 10 |
3 files changed, 49 insertions, 0 deletions
diff --git a/uisimulator/sdl/UI-gigabeats.bmp b/uisimulator/sdl/UI-gigabeats.bmp Binary files differnew file mode 100755 index 0000000000..affdbdaf69 --- /dev/null +++ b/uisimulator/sdl/UI-gigabeats.bmp diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 3c825eac72..cea65c9fa6 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -185,6 +185,45 @@ void button_event(int key, bool pressed) new_btn = BUTTON_MENU; break; +#elif CONFIG_KEYPAD == GIGABEAT_S_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_F8: + case SDLK_ESCAPE: + new_btn = BUTTON_POWER; + break; + case SDLK_KP_PLUS: + case SDLK_KP_ENTER: + case SDLK_RETURN: + new_btn = BUTTON_PLAY; + break; + case SDLK_KP7: + new_btn = BUTTON_BACK; + break; + case SDLK_KP5: + case SDLK_SPACE: + new_btn = BUTTON_SELECT; + break; + case SDLK_KP9: + case SDLK_KP_PERIOD: + case SDLK_INSERT: + new_btn = BUTTON_MENU; + break; + #elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD case SDLK_KP4: case SDLK_LEFT: diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index b0a572da75..db11047dd1 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h @@ -229,6 +229,16 @@ #define UI_LCD_WIDTH 240 #define UI_LCD_HEIGHT 320 +#elif defined(GIGABEAT_S) +#define UI_TITLE "Toshiba Gigabeat" +#define UI_WIDTH 450 /* width of GUI window */ +#define UI_HEIGHT 688 /* height of GUI window */ +/* high-colour */ +#define UI_LCD_POSX 96 /* x position of lcd */ +#define UI_LCD_POSY 90 /* y position of lcd */ +#define UI_LCD_WIDTH 240 +#define UI_LCD_HEIGHT 320 + #elif defined(MROBE_500) #define UI_TITLE "Olympus M:Robe 500" #define UI_WIDTH 401 /* width of GUI window */ |