mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Fix Windows key bind name on non-Mac
This commit is contained in:
parent
45fce1deb0
commit
d7845deb4c
3 changed files with 20 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
.vscode/
|
||||||
/build/
|
/build/
|
||||||
/release/
|
/release/
|
||||||
*.mk
|
*.mk
|
||||||
|
|
|
@ -235,10 +235,17 @@ IN_TranslateSDLtoQ2Key(unsigned int keysym)
|
||||||
case SDLK_BACKSPACE:
|
case SDLK_BACKSPACE:
|
||||||
key = K_BACKSPACE;
|
key = K_BACKSPACE;
|
||||||
break;
|
break;
|
||||||
case SDLK_LGUI:
|
#ifdef __APPLE__
|
||||||
case SDLK_RGUI:
|
case SDLK_RGUI:
|
||||||
key = K_COMMAND; // Win key
|
case SDLK_LGUI:
|
||||||
|
key = K_COMMAND;
|
||||||
break;
|
break;
|
||||||
|
#else
|
||||||
|
case SDLK_RGUI:
|
||||||
|
case SDLK_LGUI:
|
||||||
|
key = K_SUPER;
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
case SDLK_CAPSLOCK:
|
case SDLK_CAPSLOCK:
|
||||||
key = K_CAPSLOCK;
|
key = K_CAPSLOCK;
|
||||||
break;
|
break;
|
||||||
|
@ -394,8 +401,6 @@ IN_TranslateSDLtoQ2Key(unsigned int keysym)
|
||||||
key = K_KP_EQUALS;
|
key = K_KP_EQUALS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// TODO: K_SUPER ? Win Key is already K_COMMAND
|
|
||||||
|
|
||||||
case SDLK_APPLICATION:
|
case SDLK_APPLICATION:
|
||||||
key = K_COMPOSE;
|
key = K_COMPOSE;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -225,10 +225,17 @@ IN_TranslateSDLtoQ2Key(unsigned int keysym)
|
||||||
case SDLK_BACKSPACE:
|
case SDLK_BACKSPACE:
|
||||||
key = K_BACKSPACE;
|
key = K_BACKSPACE;
|
||||||
break;
|
break;
|
||||||
case SDLK_LGUI:
|
#ifdef __APPLE__
|
||||||
case SDLK_RGUI:
|
case SDLK_RGUI:
|
||||||
key = K_COMMAND; // Win key
|
case SDLK_LGUI:
|
||||||
|
key = K_COMMAND;
|
||||||
break;
|
break;
|
||||||
|
#else
|
||||||
|
case SDLK_RGUI:
|
||||||
|
case SDLK_LGUI:
|
||||||
|
key = K_SUPER;
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
case SDLK_CAPSLOCK:
|
case SDLK_CAPSLOCK:
|
||||||
key = K_CAPSLOCK;
|
key = K_CAPSLOCK;
|
||||||
break;
|
break;
|
||||||
|
@ -384,8 +391,6 @@ IN_TranslateSDLtoQ2Key(unsigned int keysym)
|
||||||
key = K_KP_EQUALS;
|
key = K_KP_EQUALS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// TODO: K_SUPER ? Win Key is already K_COMMAND
|
|
||||||
|
|
||||||
case SDLK_APPLICATION:
|
case SDLK_APPLICATION:
|
||||||
key = K_COMPOSE;
|
key = K_COMPOSE;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue