diff options
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/UI-vibe500.bmp | bin | 0 -> 421688 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 37 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 7 |
3 files changed, 43 insertions, 1 deletions
diff --git a/uisimulator/sdl/UI-vibe500.bmp b/uisimulator/sdl/UI-vibe500.bmp new file mode 100644 index 0000000000..8c12aa5fff --- /dev/null +++ b/uisimulator/sdl/UI-vibe500.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 0f9770dcac..a102925ed2 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -1248,7 +1248,42 @@ void button_event(int key, bool pressed) | |||
1248 | break; | 1248 | break; |
1249 | case SDLK_KP_MINUS: | 1249 | case SDLK_KP_MINUS: |
1250 | new_btn = BUTTON_VOL_DOWN; | 1250 | new_btn = BUTTON_VOL_DOWN; |
1251 | break; | 1251 | break; |
1252 | #elif CONFIG_KEYPAD == PBELL_VIBE500_PAD | ||
1253 | case SDLK_KP4: | ||
1254 | case SDLK_LEFT: | ||
1255 | new_btn = BUTTON_PREV; | ||
1256 | break; | ||
1257 | case SDLK_KP6: | ||
1258 | case SDLK_RIGHT: | ||
1259 | new_btn = BUTTON_NEXT; | ||
1260 | break; | ||
1261 | case SDLK_KP8: | ||
1262 | case SDLK_UP: | ||
1263 | new_btn = BUTTON_UP; | ||
1264 | break; | ||
1265 | case SDLK_KP2: | ||
1266 | case SDLK_DOWN: | ||
1267 | new_btn = BUTTON_DOWN; | ||
1268 | break; | ||
1269 | case SDLK_KP7: | ||
1270 | new_btn = BUTTON_MENU; | ||
1271 | break; | ||
1272 | case SDLK_KP9: | ||
1273 | new_btn = BUTTON_PLAY; | ||
1274 | break; | ||
1275 | case SDLK_KP5: | ||
1276 | new_btn = BUTTON_OK; | ||
1277 | break; | ||
1278 | case SDLK_KP_DIVIDE: | ||
1279 | new_btn = BUTTON_CANCEL; | ||
1280 | break; | ||
1281 | case SDLK_KP_PLUS: | ||
1282 | new_btn = BUTTON_POWER; | ||
1283 | break; | ||
1284 | case SDLK_KP_MULTIPLY: | ||
1285 | new_btn = BUTTON_REC; | ||
1286 | break; | ||
1252 | #else | 1287 | #else |
1253 | #error No keymap defined! | 1288 | #error No keymap defined! |
1254 | #endif /* CONFIG_KEYPAD */ | 1289 | #endif /* CONFIG_KEYPAD */ |
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index 5dfb9c5c2b..58a2f9959d 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h | |||
@@ -364,6 +364,13 @@ | |||
364 | #define UI_HEIGHT 436 /* height of GUI window */ | 364 | #define UI_HEIGHT 436 /* height of GUI window */ |
365 | #define UI_LCD_POSX 148 /* x position of lcd */ | 365 | #define UI_LCD_POSX 148 /* x position of lcd */ |
366 | #define UI_LCD_POSY 50 /* y position of lcd */ | 366 | #define UI_LCD_POSY 50 /* y position of lcd */ |
367 | |||
368 | #elif defined(PBELL_VIBE500) | ||
369 | #define UI_TITLE "Packard Bell Vibe 500" | ||
370 | #define UI_WIDTH 287 /* width of GUI window */ | ||
371 | #define UI_HEIGHT 488 /* height of GUI window */ | ||
372 | #define UI_LCD_POSX 64 /* x position of lcd */ | ||
373 | #define UI_LCD_POSY 61 /* y position of lcd */ | ||
367 | #else | 374 | #else |
368 | #error no UI defines | 375 | #error no UI defines |
369 | #endif | 376 | #endif |