[iortcw] 74/497: All: Fix ctrl+key codes for edit fields
Simon McVittie
smcv at debian.org
Fri Sep 8 10:36:28 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 34b03de2c4df7419d95622d42be439c1b2dea29c
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date: Mon Mar 17 18:03:18 2014 +0000
All: Fix ctrl+key codes for edit fields
---
MP/code/sdl/sdl_input.c | 2 ++
SP/code/sdl/sdl_input.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 3dde973..21a96b8 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -731,6 +731,8 @@ static void IN_ProcessEvents( void )
if( key == K_BACKSPACE )
Com_QueueEvent( 0, SE_CHAR, CTRL('h'), 0, 0, NULL );
+ else if( keys[K_CTRL].down && key >= 'a' && key <= 'z' )
+ Com_QueueEvent( 0, SE_CHAR, CTRL(key), 0, 0, NULL );
lastKeyDown = key;
break;
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 3dde973..21a96b8 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -731,6 +731,8 @@ static void IN_ProcessEvents( void )
if( key == K_BACKSPACE )
Com_QueueEvent( 0, SE_CHAR, CTRL('h'), 0, 0, NULL );
+ else if( keys[K_CTRL].down && key >= 'a' && key <= 'z' )
+ Com_QueueEvent( 0, SE_CHAR, CTRL(key), 0, 0, NULL );
lastKeyDown = key;
break;
--
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