1
0
Fork 0
forked from len0rd/rockbox

Packard Bell Vibe 500: add the simulator

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24439 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Szymon Dziok 2010-02-01 16:41:03 +00:00
parent 9938ea4b79
commit a09606123f
4 changed files with 45 additions and 1 deletions

View file

@ -1555,6 +1555,7 @@ target/arm/s5l8700/yps3/power-yps3.c
#endif /* SAMSUNG_YPS3 */
#ifdef PBELL_VIBE500
#ifndef SIMULATOR
drivers/synaptics-mep.c
target/arm/ata-as-arm.S
target/arm/ata-pp5020.c
@ -1568,5 +1569,6 @@ target/arm/pbell/vibe500/backlight-vibe500.c
target/arm/pbell/vibe500/lcd-as-vibe500.S
target/arm/pbell/vibe500/powermgmt-vibe500.c
target/arm/usb-fw-pp502x.c
#endif /* SIMULATOR */
#endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

View file

@ -1248,7 +1248,42 @@ void button_event(int key, bool pressed)
break;
case SDLK_KP_MINUS:
new_btn = BUTTON_VOL_DOWN;
break;
break;
#elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
case SDLK_KP4:
case SDLK_LEFT:
new_btn = BUTTON_PREV;
break;
case SDLK_KP6:
case SDLK_RIGHT:
new_btn = BUTTON_NEXT;
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_KP7:
new_btn = BUTTON_MENU;
break;
case SDLK_KP9:
new_btn = BUTTON_PLAY;
break;
case SDLK_KP5:
new_btn = BUTTON_OK;
break;
case SDLK_KP_DIVIDE:
new_btn = BUTTON_CANCEL;
break;
case SDLK_KP_PLUS:
new_btn = BUTTON_POWER;
break;
case SDLK_KP_MULTIPLY:
new_btn = BUTTON_REC;
break;
#else
#error No keymap defined!
#endif /* CONFIG_KEYPAD */

View file

@ -364,6 +364,13 @@
#define UI_HEIGHT 436 /* height of GUI window */
#define UI_LCD_POSX 148 /* x position of lcd */
#define UI_LCD_POSY 50 /* y position of lcd */
#elif defined(PBELL_VIBE500)
#define UI_TITLE "Packard Bell Vibe 500"
#define UI_WIDTH 287 /* width of GUI window */
#define UI_HEIGHT 488 /* height of GUI window */
#define UI_LCD_POSX 64 /* x position of lcd */
#define UI_LCD_POSY 61 /* y position of lcd */
#else
#error no UI defines
#endif