This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 8af8e9b92dcbf2affd53294192ab004937c9dba1
Author: m4n4t4...@gmail.com 
<m4n4t4...@gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Fri Sep 12 06:28:48 2014 +0000

    All: Fix 'Context Menu' and 'Windows' key bindings
---
 MP/code/sdl/sdl_input.c | 6 ++++++
 SP/code/sdl/sdl_input.c | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 9e6fd5c..1e0b873 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -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;
@@ -266,6 +271,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;
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 9e6fd5c..1e0b873 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -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;
@@ -266,6 +271,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;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to