summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/SOURCES2
-rw-r--r--uisimulator/sdl/UI-vibe500.bmpbin0 -> 421688 bytes
-rw-r--r--uisimulator/sdl/button.c37
-rw-r--r--uisimulator/sdl/uisdl.h7
4 files changed, 45 insertions, 1 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index e60bf63419..768ab49acb 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -1555,6 +1555,7 @@ target/arm/s5l8700/yps3/power-yps3.c
1555#endif /* SAMSUNG_YPS3 */ 1555#endif /* SAMSUNG_YPS3 */
1556 1556
1557#ifdef PBELL_VIBE500 1557#ifdef PBELL_VIBE500
1558#ifndef SIMULATOR
1558drivers/synaptics-mep.c 1559drivers/synaptics-mep.c
1559target/arm/ata-as-arm.S 1560target/arm/ata-as-arm.S
1560target/arm/ata-pp5020.c 1561target/arm/ata-pp5020.c
@@ -1568,5 +1569,6 @@ target/arm/pbell/vibe500/backlight-vibe500.c
1568target/arm/pbell/vibe500/lcd-as-vibe500.S 1569target/arm/pbell/vibe500/lcd-as-vibe500.S
1569target/arm/pbell/vibe500/powermgmt-vibe500.c 1570target/arm/pbell/vibe500/powermgmt-vibe500.c
1570target/arm/usb-fw-pp502x.c 1571target/arm/usb-fw-pp502x.c
1572#endif /* SIMULATOR */
1571#endif 1573#endif
1572 1574
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