diff options
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r-- | uisimulator/sdl/button.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index f8889bafb8..3a6b9ce09f 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -1190,6 +1190,41 @@ void button_event(int key, bool pressed) | |||
1190 | case SDLK_KP_PLUS: | 1190 | case SDLK_KP_PLUS: |
1191 | new_btn = BUTTON_REC; | 1191 | new_btn = BUTTON_REC; |
1192 | break; | 1192 | break; |
1193 | #elif CONFIG_KEYPAD == MINI2440_PAD | ||
1194 | case SDLK_LEFT: | ||
1195 | new_btn = BUTTON_LEFT; | ||
1196 | break; | ||
1197 | case SDLK_RIGHT: | ||
1198 | new_btn = BUTTON_RIGHT; | ||
1199 | break; | ||
1200 | case SDLK_UP: | ||
1201 | new_btn = BUTTON_UP; | ||
1202 | break; | ||
1203 | case SDLK_DOWN: | ||
1204 | new_btn = BUTTON_DOWN; | ||
1205 | break; | ||
1206 | case SDLK_F8: | ||
1207 | case SDLK_ESCAPE: | ||
1208 | new_btn = BUTTON_POWER; | ||
1209 | break; | ||
1210 | case SDLK_KP_ENTER: | ||
1211 | case SDLK_RETURN: | ||
1212 | case SDLK_a: | ||
1213 | new_btn = BUTTON_A; | ||
1214 | break; | ||
1215 | case SDLK_SPACE: | ||
1216 | new_btn = BUTTON_SELECT; | ||
1217 | break; | ||
1218 | case SDLK_KP_PERIOD: | ||
1219 | case SDLK_INSERT: | ||
1220 | new_btn = BUTTON_MENU; | ||
1221 | break; | ||
1222 | case SDLK_KP_PLUS: | ||
1223 | new_btn = BUTTON_VOL_UP; | ||
1224 | break; | ||
1225 | case SDLK_KP_MINUS: | ||
1226 | new_btn = BUTTON_VOL_DOWN; | ||
1227 | break; | ||
1193 | #else | 1228 | #else |
1194 | #error No keymap defined! | 1229 | #error No keymap defined! |
1195 | #endif /* CONFIG_KEYPAD */ | 1230 | #endif /* CONFIG_KEYPAD */ |