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

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit 8a50e2aa09e05149f4d0b72b148da12caa56f73f
Author: Zack Middleton <[email protected]>
Date:   Mon May 29 16:34:55 2017 -0500

    Don't repeat alt+enter key event
    
    Holding alt+enter should not continuously toggle fullscreen mode.
---
 code/client/cl_keys.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c
index f73083a..4945497 100644
--- a/code/client/cl_keys.c
+++ b/code/client/cl_keys.c
@@ -1239,6 +1239,11 @@ void CL_KeyDownEvent( int key, unsigned time )
 
        if( keys[K_ALT].down && key == K_ENTER )
        {
+               // don't repeat fullscreen toggle when keys are held down
+               if ( keys[K_ENTER].repeats > 1 ) {
+                       return;
+               }
+
                Cvar_SetValue( "r_fullscreen",
                        !Cvar_VariableIntegerValue( "r_fullscreen" ) );
                return;

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

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

Reply via email to