diff options
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/UI-gigabeatf.bmp | bin | 0 -> 1050742 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 8 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 10 |
3 files changed, 16 insertions, 2 deletions
diff --git a/uisimulator/sdl/UI-gigabeatf.bmp b/uisimulator/sdl/UI-gigabeatf.bmp new file mode 100644 index 0000000000..3f4104407c --- /dev/null +++ b/uisimulator/sdl/UI-gigabeatf.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 72224315a2..9571beac5e 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -86,14 +86,18 @@ void button_event(int key, bool pressed) | |||
86 | new_btn = BUTTON_ON; | 86 | new_btn = BUTTON_ON; |
87 | #elif defined(BUTTON_SELECT) && defined(BUTTON_PLAY) | 87 | #elif defined(BUTTON_SELECT) && defined(BUTTON_PLAY) |
88 | new_btn = BUTTON_PLAY; | 88 | new_btn = BUTTON_PLAY; |
89 | #elif defined BUTTON_POWER | ||
90 | new_btn = BUTTON_POWER; | ||
89 | #endif | 91 | #endif |
90 | break; | 92 | break; |
91 | 93 | ||
94 | case SDLK_KP_ENTER: | ||
92 | #ifdef BUTTON_OFF | 95 | #ifdef BUTTON_OFF |
93 | case SDLK_RETURN: | ||
94 | new_btn = BUTTON_OFF; | 96 | new_btn = BUTTON_OFF; |
95 | break; | 97 | #elif defined BUTTON_A |
98 | new_btn = BUTTON_A; | ||
96 | #endif | 99 | #endif |
100 | break; | ||
97 | 101 | ||
98 | #ifdef BUTTON_F1 | 102 | #ifdef BUTTON_F1 |
99 | case SDLK_KP_DIVIDE: | 103 | case SDLK_KP_DIVIDE: |
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index 800a7f8ab6..70b8e18bd1 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h | |||
@@ -180,6 +180,16 @@ | |||
180 | 180 | ||
181 | #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // bkgnd of remote lcd (bklight) | 181 | #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // bkgnd of remote lcd (bklight) |
182 | #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight) | 182 | #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight) |
183 | |||
184 | #elif defined(GIGABEAT_F) | ||
185 | #define UI_TITLE "Toshiba Gigabeat" | ||
186 | #define UI_WIDTH 401 // width of GUI window | ||
187 | #define UI_HEIGHT 655 // height of GUI window | ||
188 | /* high-colour */ | ||
189 | #define UI_LCD_POSX 48 // x position of lcd | ||
190 | #define UI_LCD_POSY 60 // y position of lcd | ||
191 | #define UI_LCD_WIDTH 240 | ||
192 | #define UI_LCD_HEIGHT 320 | ||
183 | #endif | 193 | #endif |
184 | 194 | ||
185 | extern SDL_Surface *gui_surface; | 195 | extern SDL_Surface *gui_surface; |