summaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-09-11 19:27:46 -0500
committerTim Angus <tim@ngus.net>2015-03-17 11:38:37 +0000
commit2f1847529ff40055be86120cf83304c2701cac09 (patch)
tree04046e11b43365a2df6fd2791e3d8b8e18977191 /src/sdl
parent29c164c70794ed1a394a53a387e553dd5b8ddc33 (diff)
Fix binding 'context menu' key using SDL2
SDL 1.2 converted Windows' VK_APPS and X11 XK_Hyper_R to SDLK_MENU. SDL2 has it as a separate SDLK_APPLICATION key, so convert it to K_MENU too.
Diffstat (limited to 'src/sdl')
-rw-r--r--src/sdl/sdl_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c
index 349d3677..1a51c928 100644
--- a/src/sdl/sdl_input.c
+++ b/src/sdl/sdl_input.c
@@ -267,6 +267,7 @@ static keyNum_t IN_TranslateSDLToQ3Key( SDL_Keysym *keysym, qboolean down )
case SDLK_PRINTSCREEN: key = K_PRINT; break;
case SDLK_SYSREQ: key = K_SYSREQ; break;
case SDLK_MENU: key = K_MENU; break;
+ case SDLK_APPLICATION: key = K_MENU; break;
case SDLK_POWER: key = K_POWER; break;
case SDLK_UNDO: key = K_UNDO; break;
case SDLK_SCROLLLOCK: key = K_SCROLLOCK; break;