[iortcw] 187/497: All: Fix binding KP_NUMLOCK

Simon McVittie smcv at debian.org
Fri Sep 8 10:36:48 UTC 2017


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 1e3fca2473813dc6c293c5bcf5ad9d4971310ba6
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Fri Aug 29 15:31:31 2014 +0000

    All: Fix binding KP_NUMLOCK
---
 MP/code/sdl/sdl_input.c | 1 +
 SP/code/sdl/sdl_input.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 28e3171..8448990 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -269,6 +269,7 @@ static keyNum_t IN_TranslateSDLToQ3Key( SDL_Keysym *keysym, qboolean down )
 			case SDLK_POWER:        key = K_POWER;         break;
 			case SDLK_UNDO:         key = K_UNDO;          break;
 			case SDLK_SCROLLLOCK:   key = K_SCROLLOCK;     break;
+			case SDLK_NUMLOCKCLEAR: key = K_KP_NUMLOCK;    break;
 			case SDLK_CAPSLOCK:     key = K_CAPSLOCK;      break;
 
 			default:
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 28e3171..8448990 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -269,6 +269,7 @@ static keyNum_t IN_TranslateSDLToQ3Key( SDL_Keysym *keysym, qboolean down )
 			case SDLK_POWER:        key = K_POWER;         break;
 			case SDLK_UNDO:         key = K_UNDO;          break;
 			case SDLK_SCROLLLOCK:   key = K_SCROLLOCK;     break;
+			case SDLK_NUMLOCKCLEAR: key = K_KP_NUMLOCK;    break;
 			case SDLK_CAPSLOCK:     key = K_CAPSLOCK;      break;
 
 			default:

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



More information about the Pkg-games-commits mailing list