summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-07-08 12:45:15 +0000
committerThomas Martitz <kugel@rockbox.org>2009-07-08 12:45:15 +0000
commiteb915ce6a1fabf4b4cb0cae770126ba5e3138d2a (patch)
tree96104bc27194a96017d7819cb946d0ba8bd5d4f7 /uisimulator
parent59c4b6816bd41c8d0362ad9e6bbd7b10e648c4fc (diff)
downloadrockbox-eb915ce6a1fabf4b4cb0cae770126ba5e3138d2a.tar.gz
rockbox-eb915ce6a1fabf4b4cb0cae770126ba5e3138d2a.tar.bz2
rockbox-eb915ce6a1fabf4b4cb0cae770126ba5e3138d2a.zip
Make the Sansa Clip and Fuze sim keymapping more like other Sansas with regard to the use of the numpad
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21713 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 8bc49e1522..5f92b655d1 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -974,6 +974,7 @@ void button_event(int key, bool pressed)
new_btn = BUTTON_DOWN;
break;
case SDLK_KP_MINUS:
+ case SDLK_KP1:
new_btn = BUTTON_POWER;
break;
case SDLK_KP_MULTIPLY:
@@ -1002,20 +1003,25 @@ void button_event(int key, bool pressed)
case SDLK_DOWN:
new_btn = BUTTON_DOWN;
break;
+
case SDLK_INSERT:
+ case SDLK_KP_MULTIPLY:
new_btn = BUTTON_HOME;
break;
case SDLK_SPACE:
+ case SDLK_KP5:
new_btn = BUTTON_SELECT;
break;
case SDLK_PAGEDOWN:
+ case SDLK_KP3:
new_btn = BUTTON_VOL_DOWN;
break;
case SDLK_PAGEUP:
+ case SDLK_KP9:
new_btn = BUTTON_VOL_UP;
break;
case SDLK_ESCAPE:
- case SDLK_p:
+ case SDLK_KP1:
new_btn = BUTTON_POWER;
break;
#elif CONFIG_KEYPAD == SANSA_M200_PAD