summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/UI-mrobe100.bmpbin0 -> 309558 bytes
-rw-r--r--uisimulator/sdl/button.c36
-rw-r--r--uisimulator/sdl/uisdl.h11
3 files changed, 47 insertions, 0 deletions
diff --git a/uisimulator/sdl/UI-mrobe100.bmp b/uisimulator/sdl/UI-mrobe100.bmp
new file mode 100644
index 0000000000..17e7abcde1
--- /dev/null
+++ b/uisimulator/sdl/UI-mrobe100.bmp
Binary files differ
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 */