summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2010-01-16 22:06:36 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2010-01-16 22:06:36 +0000
commitf6eccb6fb8bf0ea61395116f9bbcb48327f0f701 (patch)
treedd59703e8b1a759905b2419c748aefcf2ae555c3 /uisimulator
parente04f64ba155a9eb59cef87bbaea60908214ec4cc (diff)
downloadrockbox-f6eccb6fb8bf0ea61395116f9bbcb48327f0f701.tar.gz
rockbox-f6eccb6fb8bf0ea61395116f9bbcb48327f0f701.tar.bz2
rockbox-f6eccb6fb8bf0ea61395116f9bbcb48327f0f701.zip
Simulator: Fix reds.
Add key mapping of touchscreen targets M-Robe 500 and Onda VX747 to avoid use of arrow keys. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24254 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 2a0ce83c5d..fdabfcf5a4 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -729,16 +729,22 @@ void button_event(int key, bool pressed)
case SDLK_F12:
new_btn = BUTTON_RC_VOL_UP;
break;
- case SDLK_LEFT:
+ case SDLK_MINUS:
+ case SDLK_LESS:
+ case SDLK_LEFTBRACKET:
+ case SDLK_KP_DIVIDE:
new_btn = BUTTON_LEFT;
break;
- case SDLK_RIGHT:
+ case SDLK_PLUS:
+ case SDLK_GREATER:
+ case SDLK_RIGHTBRACKET:
+ case SDLK_KP_MULTIPLY:
new_btn = BUTTON_RIGHT;
break;
- case SDLK_UP:
+ case SDLK_PAGEUP:
new_btn = BUTTON_RC_PLAY;
break;
- case SDLK_DOWN:
+ case SDLK_PAGEDOWN:
new_btn = BUTTON_RC_DOWN;
break;
case SDLK_F8:
@@ -1150,11 +1156,17 @@ void button_event(int key, bool pressed)
new_btn = BUTTON_POWER;
break;
case SDLK_KP_PLUS:
- case SDLK_RIGHT:
+ case SDLK_PLUS:
+ case SDLK_GREATER:
+ case SDLK_RIGHTBRACKET:
+ case SDLK_KP_MULTIPLY:
new_btn = BUTTON_VOL_UP;
break;
case SDLK_KP_MINUS:
- case SDLK_LEFT:
+ case SDLK_MINUS:
+ case SDLK_LESS:
+ case SDLK_LEFTBRACKET:
+ case SDLK_KP_DIVIDE:
new_btn = BUTTON_VOL_DOWN;
break;
case SDLK_KP_ENTER: