forked from len0rd/rockbox
make the mini2440 simulator compile.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23379 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bee5900032
commit
e5086076a0
4 changed files with 52 additions and 8 deletions
BIN
uisimulator/sdl/UI-mini2440.bmp
Normal file
BIN
uisimulator/sdl/UI-mini2440.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 564 KiB |
|
|
@ -1190,6 +1190,41 @@ void button_event(int key, bool pressed)
|
|||
case SDLK_KP_PLUS:
|
||||
new_btn = BUTTON_REC;
|
||||
break;
|
||||
#elif CONFIG_KEYPAD == MINI2440_PAD
|
||||
case SDLK_LEFT:
|
||||
new_btn = BUTTON_LEFT;
|
||||
break;
|
||||
case SDLK_RIGHT:
|
||||
new_btn = BUTTON_RIGHT;
|
||||
break;
|
||||
case SDLK_UP:
|
||||
new_btn = BUTTON_UP;
|
||||
break;
|
||||
case SDLK_DOWN:
|
||||
new_btn = BUTTON_DOWN;
|
||||
break;
|
||||
case SDLK_F8:
|
||||
case SDLK_ESCAPE:
|
||||
new_btn = BUTTON_POWER;
|
||||
break;
|
||||
case SDLK_KP_ENTER:
|
||||
case SDLK_RETURN:
|
||||
case SDLK_a:
|
||||
new_btn = BUTTON_A;
|
||||
break;
|
||||
case SDLK_SPACE:
|
||||
new_btn = BUTTON_SELECT;
|
||||
break;
|
||||
case SDLK_KP_PERIOD:
|
||||
case SDLK_INSERT:
|
||||
new_btn = BUTTON_MENU;
|
||||
break;
|
||||
case SDLK_KP_PLUS:
|
||||
new_btn = BUTTON_VOL_UP;
|
||||
break;
|
||||
case SDLK_KP_MINUS:
|
||||
new_btn = BUTTON_VOL_DOWN;
|
||||
break;
|
||||
#else
|
||||
#error No keymap defined!
|
||||
#endif /* CONFIG_KEYPAD */
|
||||
|
|
|
|||
|
|
@ -353,6 +353,12 @@
|
|||
#define UI_LCD_POSX 124 /* x position of lcd */
|
||||
#define UI_LCD_POSY 42 /* y position of lcd */
|
||||
|
||||
#elif defined(MINI2440)
|
||||
#define UI_TITLE "Mini2440"
|
||||
#define UI_WIDTH 441 /* width of GUI window */
|
||||
#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 */
|
||||
#else
|
||||
#error no UI defines
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue