1
0
Fork 0
forked from len0rd/rockbox

Add the sim build for the Philips HDD1630.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19639 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mark Arigo 2009-01-02 04:35:13 +00:00
parent 43ffbdb5ab
commit 498e95b986
3 changed files with 51 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 KiB

View file

@ -1049,6 +1049,47 @@ void button_event(int key, bool pressed)
case SDLK_KP9:
new_btn = BUTTON_VOLUP;
break;
#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
case SDLK_KP4:
case SDLK_LEFT:
new_btn = BUTTON_LEFT;
break;
case SDLK_KP6:
case SDLK_RIGHT:
new_btn = BUTTON_RIGHT;
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_SELECT;
break;
case SDLK_KP7:
case SDLK_ESCAPE:
new_btn = BUTTON_POWER;
break;
case SDLK_KP1:
new_btn = BUTTON_PLAYLIST;
break;
case SDLK_KP9:
new_btn = BUTTON_VOL_UP;
break;
case SDLK_KP3:
new_btn = BUTTON_VOL_DOWN;
break;
case SDLK_KP_MINUS:
new_btn = BUTTON_MENU;
break;
case SDLK_KP_PLUS:
new_btn = BUTTON_VIEW;
break;
#else
#error No keymap defined!
#endif /* CONFIG_KEYPAD */

View file

@ -466,6 +466,16 @@
#define UI_LCD_SPLIT_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
#define UI_LCD_SPLIT_FGCOLORLIGHT 255, 230, 15 /* foreground color of LCD (backlight) */
#elif defined(PHILIPS_HDD1630)
#define UI_TITLE "Philips GoGear HDD1630"
#define UI_WIDTH 407 /* width of GUI window */
#define UI_HEIGHT 391 /* height of GUI window */
/* high-colour */
#define UI_LCD_POSX 143 /* x position of lcd */
#define UI_LCD_POSY 27 /* y position of lcd */
#define UI_LCD_WIDTH LCD_WIDTH
#define UI_LCD_HEIGHT LCD_HEIGHT
#endif
extern SDL_Surface *gui_surface;
extern bool background; /* True if the background image is enabled */