aboutsummaryrefslogtreecommitdiff
path: root/ui/sdl2-keymap.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-07-29 13:52:27 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-09-16 08:07:05 +0200
commit0d61f7dcc6c04e7e825417c74e50362d990330bf (patch)
tree4842c39bca143f9a712d02fd5306baca0a46f6b7 /ui/sdl2-keymap.h
parent4f36e42ee9334c56f0ea8048ccdbe8ae8372346e (diff)
sdl2: keymap fixups
Make a few keys works correctly in SDL2. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/sdl2-keymap.h')
-rw-r--r--ui/sdl2-keymap.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/sdl2-keymap.h b/ui/sdl2-keymap.h
index 5a12f4543a..cbedaa477d 100644
--- a/ui/sdl2-keymap.h
+++ b/ui/sdl2-keymap.h
@@ -105,9 +105,10 @@ static const int sdl2_scancode_to_qcode[SDL_NUM_SCANCODES] = {
[SDL_SCANCODE_KP_9] = Q_KEY_CODE_KP_9,
[SDL_SCANCODE_KP_0] = Q_KEY_CODE_KP_0,
[SDL_SCANCODE_KP_PERIOD] = Q_KEY_CODE_KP_DECIMAL,
+
+ [SDL_SCANCODE_NONUSBACKSLASH] = Q_KEY_CODE_LESS,
+ [SDL_SCANCODE_APPLICATION] = Q_KEY_CODE_MENU,
#if 0
- [SDL_SCANCODE_NONUSBACKSLASH] = Q_KEY_CODE_NONUSBACKSLASH,
- [SDL_SCANCODE_APPLICATION] = Q_KEY_CODE_APPLICATION,
[SDL_SCANCODE_POWER] = Q_KEY_CODE_POWER,
[SDL_SCANCODE_KP_EQUALS] = Q_KEY_CODE_KP_EQUALS,
@@ -231,7 +232,7 @@ static const int sdl2_scancode_to_qcode[SDL_NUM_SCANCODES] = {
[SDL_SCANCODE_LGUI] = Q_KEY_CODE_META_L,
[SDL_SCANCODE_RCTRL] = Q_KEY_CODE_CTRL_R,
[SDL_SCANCODE_RSHIFT] = Q_KEY_CODE_SHIFT_R,
- [SDL_SCANCODE_RALT] = Q_KEY_CODE_ALTGR,
+ [SDL_SCANCODE_RALT] = Q_KEY_CODE_ALT_R,
[SDL_SCANCODE_RGUI] = Q_KEY_CODE_META_R,
#if 0
[SDL_SCANCODE_MODE] = Q_KEY_CODE_MODE,