1
0
Fork 0
forked from len0rd/rockbox

Philips SA9200: add the UI sim

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21348 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mark Arigo 2009-06-19 03:50:30 +00:00
parent df8f64d3a4
commit 895357be99
3 changed files with 44 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 KiB

View file

@ -1047,7 +1047,43 @@ void button_event(int key, bool pressed)
case SDLK_KP9:
new_btn = BUTTON_VOL_UP;
break;
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
case SDLK_KP4:
case SDLK_LEFT:
new_btn = BUTTON_REW;
break;
case SDLK_KP6:
case SDLK_RIGHT:
new_btn = BUTTON_FFWD;
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_KP5:
case SDLK_SPACE:
new_btn = BUTTON_PLAY;
break;
case SDLK_KP7:
new_btn = BUTTON_LEFT;
break;
case SDLK_KP9:
new_btn = BUTTON_RIGHT;
break;
case SDLK_KP_ENTER:
case SDLK_RETURN:
new_btn = BUTTON_POWER;
break;
case SDLK_PAGEUP:
new_btn = BUTTON_VOL_UP;
break;
case SDLK_PAGEDOWN:
new_btn = BUTTON_VOL_DOWN;
break;
#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
case SDLK_KP4:
case SDLK_LEFT:

View file

@ -292,6 +292,13 @@
#define UI_LCD_POSX 38 /* x position of lcd */
#define UI_LCD_POSY 38 /* y position of lcd */
#elif defined(PHILIPS_SA9200)
#define UI_TITLE "Philips GoGear SA9200"
#define UI_WIDTH 233 /* width of GUI window */
#define UI_HEIGHT 435 /* height of GUI window */
#define UI_LCD_POSX 50 /* x position of lcd */
#define UI_LCD_POSY 50 /* y position of lcd */
#elif defined(PHILIPS_HDD1630)
#define UI_TITLE "Philips GoGear HDD1630"
#define UI_WIDTH 407 /* width of GUI window */