summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-03-15 12:51:53 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-03-15 12:51:53 +0000
commit3908b893224ee7fb982ac92fc63af3c9522a4d93 (patch)
tree1ef58d68c9264088afda2b57510b17cfeb3daeb0 /uisimulator
parent42660535bec2200506c541392bd808a5ea9b102e (diff)
downloadrockbox-3908b893224ee7fb982ac92fc63af3c9522a4d93.tar.gz
rockbox-3908b893224ee7fb982ac92fc63af3c9522a4d93.tar.bz2
rockbox-3908b893224ee7fb982ac92fc63af3c9522a4d93.zip
UIsimulator: iAudio M3 remote keys add.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25204 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c42
1 files changed, 35 insertions, 7 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 52646220e7..4fd276ac97 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -313,33 +313,51 @@ void button_event(int key, bool pressed)
#elif CONFIG_KEYPAD == IAUDIO_M3_PAD
case SDLK_KP4:
- case SDLK_LEFT:
new_btn = BUTTON_LEFT;
break;
+ case SDLK_LEFT:
+ new_btn = BUTTON_RC_REW;
+ break;
case SDLK_KP6:
- case SDLK_RIGHT:
new_btn = BUTTON_RIGHT;
break;
+ case SDLK_RIGHT:
+ new_btn = BUTTON_RC_FF;
+ break;
case SDLK_KP8:
- case SDLK_UP:
new_btn = BUTTON_VOL_UP;
break;
+ case SDLK_UP:
+ new_btn = BUTTON_RC_VOL_UP;
+ break;
case SDLK_KP2:
- case SDLK_DOWN:
new_btn = BUTTON_VOL_DOWN;
break;
+ case SDLK_DOWN:
+ new_btn = BUTTON_RC_VOL_DOWN;
+ break;
case SDLK_KP_PERIOD:
- case SDLK_INSERT:
new_btn = BUTTON_MODE;
break;
+ case SDLK_INSERT:
+ new_btn = BUTTON_RC_MODE;
+ break;
case SDLK_KP_DIVIDE:
- case SDLK_F1:
new_btn = BUTTON_REC;
break;
+ case SDLK_F1:
+ new_btn = BUTTON_RC_REC;
+ break;
case SDLK_KP5:
- case SDLK_SPACE:
new_btn = BUTTON_PLAY;
break;
+ case SDLK_SPACE:
+ new_btn = BUTTON_RC_PLAY;
+ break;
+ case SDLK_KP_ENTER:
+ case SDLK_RETURN:
+ new_btn = BUTTON_RC_MENU;
+ break;
#elif (CONFIG_KEYPAD == IPOD_1G2G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) \
|| (CONFIG_KEYPAD == IPOD_4G_PAD)
@@ -1572,8 +1590,18 @@ struct button_map bm[] = {
{ SDLK_KP4, 257, 201, 26, "Left" },
{ SDLK_KP8, 338, 31, 27, "Up" },
{ SDLK_KP2, 339, 92, 23, "Down" },
+ { SDLK_KP_PERIOD, 336, 50, 23, "Mode" },
{ SDLK_KP_DIVIDE, 336, 147, 23, "Rec" },
{ SDLK_h, 336, 212, 30, "Hold" },
+ /* remote */
+ { SDLK_SPACE, 115, 308, 20, "RC Play" },
+ { SDLK_RIGHT, 85, 308, 20, "RC Rew" },
+ { SDLK_LEFT, 143, 308, 20, "RC FF" },
+ { SDLK_UP, 143, 498, 20, "RC Up" },
+ { SDLK_DOWN, 85, 498, 20, "RC Down" },
+ { SDLK_INSERT, 212, 308, 30, "RC Mode" },
+ { SDLK_F1, 275, 308, 25, "RC Rec" },
+ { SDLK_KP_ENTER, 115, 498, 20, "RC Menu" },
{ 0, 0, 0, 0, "None" }
};
#elif defined (IAUDIO_M5)