mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-07 16:31:21 +00:00
Don't repeat alt+enter key event
Holding alt+enter should not continuously toggle fullscreen mode.
This commit is contained in:
parent
024a8842bd
commit
8a50e2aa09
1 changed files with 5 additions and 0 deletions
|
@ -1239,6 +1239,11 @@ void CL_KeyDownEvent( int key, unsigned time )
|
||||||
|
|
||||||
if( keys[K_ALT].down && key == K_ENTER )
|
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_SetValue( "r_fullscreen",
|
||||||
!Cvar_VariableIntegerValue( "r_fullscreen" ) );
|
!Cvar_VariableIntegerValue( "r_fullscreen" ) );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue