mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
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:
parent
878cda6a20
commit
9fbbf4214d
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue