Fix Windows key bind name on non-Mac using SDL2

SDL 1.2 sends SDKL_*META (command) and SDLK_*SUPER (windows key).
SDL2 sends SDLK_*GUI for both.
This commit is contained in:
Zack Middleton 2014-09-11 19:57:20 -05:00
parent 878cda6a20
commit 9fbbf4214d

View file

@ -247,8 +247,13 @@ static keyNum_t IN_TranslateSDLToQ3Key( SDL_Keysym *keysym, qboolean down )
case SDLK_LCTRL:
case SDLK_RCTRL: key = K_CTRL; break;
#ifdef MACOS_X
case SDLK_RGUI:
case SDLK_LGUI: key = K_COMMAND; break;
#else
case SDLK_RGUI:
case SDLK_LGUI: key = K_SUPER; break;
#endif
case SDLK_RALT:
case SDLK_LALT: key = K_ALT; break;