diff options
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r-- | uisimulator/sdl/button.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 07e53ce951..76a1f2f10c 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -833,6 +833,53 @@ void button_event(int key, bool pressed) | |||
833 | case SDLK_ESCAPE: | 833 | case SDLK_ESCAPE: |
834 | new_btn = BUTTON_POWER; | 834 | new_btn = BUTTON_POWER; |
835 | break; | 835 | break; |
836 | #elif CONFIG_KEYPAD == CREATIVEZV_PAD | ||
837 | case SDLK_KP1: | ||
838 | new_btn = BUTTON_PREV; | ||
839 | break; | ||
840 | case SDLK_KP3: | ||
841 | new_btn = BUTTON_NEXT; | ||
842 | break; | ||
843 | case SDLK_KP7: | ||
844 | new_btn = BUTTON_BACK; | ||
845 | break; | ||
846 | case SDLK_p: | ||
847 | new_btn = BUTTON_PLAY; | ||
848 | break; | ||
849 | case SDLK_KP9: | ||
850 | new_btn = BUTTON_MENU; | ||
851 | break; | ||
852 | case SDLK_KP4: | ||
853 | case SDLK_LEFT: | ||
854 | new_btn = BUTTON_LEFT; | ||
855 | break; | ||
856 | case SDLK_KP6: | ||
857 | case SDLK_RIGHT: | ||
858 | new_btn = BUTTON_RIGHT; | ||
859 | break; | ||
860 | case SDLK_KP8: | ||
861 | case SDLK_UP: | ||
862 | new_btn = BUTTON_UP; | ||
863 | break; | ||
864 | case SDLK_KP2: | ||
865 | case SDLK_DOWN: | ||
866 | new_btn = BUTTON_DOWN; | ||
867 | break; | ||
868 | case SDLK_KP5: | ||
869 | case SDLK_SPACE: | ||
870 | new_btn = BUTTON_SELECT; | ||
871 | break; | ||
872 | case SDLK_KP_MULTIPLY: | ||
873 | case SDLK_F8: | ||
874 | case SDLK_ESCAPE: | ||
875 | new_btn = BUTTON_POWER; | ||
876 | break; | ||
877 | case SDLK_z: | ||
878 | new_btn = BUTTON_VOL_DOWN; | ||
879 | break; | ||
880 | case SDLK_s: | ||
881 | new_btn = BUTTON_VOL_UP; | ||
882 | break; | ||
836 | #else | 883 | #else |
837 | #error No keymap defined! | 884 | #error No keymap defined! |
838 | #endif /* CONFIG_KEYPAD */ | 885 | #endif /* CONFIG_KEYPAD */ |