compile uisimulator for m:robe 100, button definitions taken from h10 for now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16123 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b5acab1bcf
commit
c1791a540e
3 changed files with 47 additions and 0 deletions
BIN
uisimulator/sdl/UI-mrobe100.bmp
Normal file
BIN
uisimulator/sdl/UI-mrobe100.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 302 KiB |
|
@ -632,6 +632,42 @@ void button_event(int key, bool pressed)
|
|||
case SDLK_INSERT:
|
||||
new_btn = BUTTON_RC_MODE;
|
||||
break;
|
||||
#elif CONFIG_KEYPAD == MROBE100_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_SCROLL_UP;
|
||||
break;
|
||||
case SDLK_KP2:
|
||||
case SDLK_DOWN:
|
||||
new_btn = BUTTON_SCROLL_DOWN;
|
||||
break;
|
||||
case SDLK_KP_PLUS:
|
||||
case SDLK_F8:
|
||||
new_btn = BUTTON_POWER;
|
||||
break;
|
||||
case SDLK_ESCAPE:
|
||||
new_btn = BUTTON_POWER;
|
||||
break;
|
||||
case SDLK_KP_DIVIDE:
|
||||
case SDLK_F1:
|
||||
new_btn = BUTTON_REW;
|
||||
break;
|
||||
case SDLK_KP_MULTIPLY:
|
||||
case SDLK_F2:
|
||||
new_btn = BUTTON_FF;
|
||||
break;
|
||||
case SDLK_KP5:
|
||||
case SDLK_SPACE:
|
||||
new_btn = BUTTON_PLAY;
|
||||
break;
|
||||
#else
|
||||
#error No keymap defined!
|
||||
#endif /* CONFIG_KEYPAD */
|
||||
|
|
|
@ -310,6 +310,17 @@
|
|||
#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
|
||||
#define UI_LCD_BLACK 0, 0, 0 /* black */
|
||||
|
||||
#elif defined(MROBE_100)
|
||||
#define UI_TITLE "Olympus M:Robe 100"
|
||||
#define UI_WIDTH 247 /* width of GUI window */
|
||||
#define UI_HEIGHT 416 /* height of GUI window */
|
||||
#define UI_LCD_BGCOLOR 94, 2, 2 /* bkgnd color of LCD (no backlight) */
|
||||
#define UI_LCD_BGCOLORLIGHT 241, 6, 3 /* bkgnd color of LCD (backlight) */
|
||||
#define UI_LCD_BLACK 0, 0, 0 /* black */
|
||||
#define UI_LCD_POSX 43 /* x position of lcd */
|
||||
#define UI_LCD_POSY 25 /* y position of lcd */
|
||||
#define UI_LCD_WIDTH 160
|
||||
#define UI_LCD_HEIGHT 128
|
||||
#endif
|
||||
extern SDL_Surface *gui_surface;
|
||||
extern bool background; /* True if the background image is enabled */
|
||||
|
|
Loading…
Reference in a new issue