diff options
author | Robert Kukla <roolku@rockbox.org> | 2008-01-20 22:57:49 +0000 |
---|---|---|
committer | Robert Kukla <roolku@rockbox.org> | 2008-01-20 22:57:49 +0000 |
commit | c1791a540ec3599de0f3e03cc24c669970d1fa51 (patch) | |
tree | a5d9fe7d905a2fc8e3cab55ce78f90dcde53c1ca /uisimulator | |
parent | b5acab1bcf0970142ec72b29de7854244a44e04c (diff) | |
download | rockbox-c1791a540ec3599de0f3e03cc24c669970d1fa51.tar.gz rockbox-c1791a540ec3599de0f3e03cc24c669970d1fa51.zip |
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
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/sdl/UI-mrobe100.bmp | bin | 0 -> 309558 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 36 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 11 |
3 files changed, 47 insertions, 0 deletions
diff --git a/uisimulator/sdl/UI-mrobe100.bmp b/uisimulator/sdl/UI-mrobe100.bmp Binary files differnew file mode 100644 index 0000000000..17e7abcde1 --- /dev/null +++ b/uisimulator/sdl/UI-mrobe100.bmp diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 5e46cbe7c6..4211ba3f04 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -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 */ diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index 9be517c997..7d11bfab20 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h @@ -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 */ |