summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-04-26 21:40:00 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-04-26 21:40:00 +0000
commitb09d3aec392538ca0934644ff6357c41aaa4c323 (patch)
tree0603cf4ef59e84ee4e0c172e3b418d8dccac664c /uisimulator
parentfa5cd0d3bf744f75be0593a7e2c2083810f16c21 (diff)
downloadrockbox-b09d3aec392538ca0934644ff6357c41aaa4c323.tar.gz
rockbox-b09d3aec392538ca0934644ff6357c41aaa4c323.tar.bz2
rockbox-b09d3aec392538ca0934644ff6357c41aaa4c323.zip
Add MPIO HD200 port - changed files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c36
-rw-r--r--uisimulator/sdl/uisdl.h8
2 files changed, 44 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 4fd276ac97..2bb7764782 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -1305,6 +1305,30 @@ void button_event(int key, bool pressed)
case SDLK_KP_MULTIPLY:
new_btn = BUTTON_REC;
break;
+
+#elif CONFIG_KEYPAD == MPIO_HD200_PAD
+ case SDLK_UP:
+ new_btn = BUTTON_PREV;
+ break;
+ case SDLK_DOWN:
+ new_btn = BUTTON_NEXT;
+ break;
+ case SDLK_SPACE:
+ new_btn = BUTTON_SELECT;
+ break;
+ case SDLK_RETURN:
+ new_btn = BUTTON_PLAY;
+ break;
+ case SDLK_LEFT:
+ new_btn = BUTTON_VOL_DOWN;
+ break;
+ case SDLK_RIGHT:
+ new_btn = BUTTON_VOL_UP;
+ break;
+ case SDLK_ESCAPE:
+ new_btn = BUTTON_REC;
+ break;
+
#else
#error No keymap defined!
#endif /* CONFIG_KEYPAD */
@@ -1850,6 +1874,18 @@ struct button_map bm[] = {
{ SDLK_KP3, 311, 569, 47, "Menu" },
{ 0, 0, 0, 0, "None" }
};
+#elif defined (MPIO_HD200)
+struct button_map bm[] = {
+ { SDLK_ESCAPE, 369, 257, 20, "Rec" },
+ { SDLK_RETURN, 369, 305, 20, "Play/Stop" },
+ { SDLK_UP, 353, 168, 10, "Rew" },
+ { SDLK_DOWN, 353, 198, 10, "FF" },
+ { SDLK_SPACE, 353, 186, 10, "Select" },
+ { SDLK_LEFT, 123, 67, 20, "Vol Down" },
+ { SDLK_RIGHT, 206, 67, 20, "Vol Up" },
+ { SDLK_h, 369, 402, 30, "Hold" },
+ { 0, 0, 0, 0, "None" }
+};
#else
struct button_map bm[] = {
{ 0, 0, 0, 0, ""}
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index ca422c66ef..dac84ffb74 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -389,6 +389,14 @@
#define UI_HEIGHT 488 /* height of GUI window */
#define UI_LCD_POSX 64 /* x position of lcd */
#define UI_LCD_POSY 61 /* y position of lcd */
+
+#elif defined(MPIO_HD200)
+#define UI_TITLE "MPIO HD200"
+#define UI_WIDTH 430 /* width of GUI window */
+#define UI_HEIGHT 479 /* height of GUI window */
+#define UI_LCD_POSX 101
+#define UI_LCD_POSY 195
+
#else
#error no UI defines
#endif