[iortcw] 117/497: All: Disable key repeat if key catcher is 0
Simon McVittie
smcv at debian.org
Fri Sep 8 10:36:35 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 c8f6eb294d6eb38779d6b84783a56a8798595344
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date: Mon May 19 17:42:52 2014 +0000
All: Disable key repeat if key catcher is 0
---
MP/code/sdl/sdl_input.c | 3 +++
SP/code/sdl/sdl_input.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 21a96b8..53075e0 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -726,6 +726,9 @@ static void IN_ProcessEvents( void )
switch( e.type )
{
case SDL_KEYDOWN:
+ if ( e.key.repeat && Key_GetCatcher( ) == 0 )
+ break;
+
if( ( key = IN_TranslateSDLToQ3Key( &e.key.keysym, qtrue ) ) )
Com_QueueEvent( 0, SE_KEY, key, qtrue, 0, NULL );
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 21a96b8..53075e0 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -726,6 +726,9 @@ static void IN_ProcessEvents( void )
switch( e.type )
{
case SDL_KEYDOWN:
+ if ( e.key.repeat && Key_GetCatcher( ) == 0 )
+ break;
+
if( ( key = IN_TranslateSDLToQ3Key( &e.key.keysym, qtrue ) ) )
Com_QueueEvent( 0, SE_KEY, key, qtrue, 0, NULL );
--
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