summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r--uisimulator/sdl/button.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 22cfda1119..4408dde3e9 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -467,17 +467,17 @@ void button_event(int key, bool pressed)
break;
case SDLK_KP8:
case SDLK_UP:
- new_btn = BUTTON_UP;
+ new_btn = BUTTON_SCROLL_UP;
break;
case SDLK_KP2:
case SDLK_DOWN:
- new_btn = BUTTON_DOWN;
+ new_btn = BUTTON_SCROLL_DOWN;
break;
case SDLK_KP9:
- new_btn = BUTTON_SCROLL_UP;
+ new_btn = BUTTON_UP;
break;
case SDLK_KP3:
- new_btn = BUTTON_SCROLL_DOWN;
+ new_btn = BUTTON_DOWN;
break;
case SDLK_KP1:
new_btn = BUTTON_POWER;
@@ -485,6 +485,10 @@ void button_event(int key, bool pressed)
case SDLK_KP7:
new_btn = BUTTON_REC;
break;
+ case SDLK_KP5:
+ case SDLK_SPACE:
+ new_btn = BUTTON_SELECT;
+ break;
#endif /* CONFIG_KEYPAD */
case SDLK_KP0: