From eb915ce6a1fabf4b4cb0cae770126ba5e3138d2a Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 8 Jul 2009 12:45:15 +0000 Subject: [PATCH] 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 --- uisimulator/sdl/button.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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