mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 01:42:12 +00:00
* Fix bug that prevented key up events getting to cgame/ui when not in game
* Use Key_[GS]etCatcher everywhere to set keycatcher * Clear all key states when the catcher changes
This commit is contained in:
parent
26641226a4
commit
5692e30fa9
9 changed files with 79 additions and 71 deletions
|
@ -651,7 +651,7 @@ static void IN_ProcessEvents( void )
|
|||
if( !SDL_WasInit( SDL_INIT_VIDEO ) )
|
||||
return;
|
||||
|
||||
if( cls.keyCatchers == 0 && keyRepeatEnabled )
|
||||
if( Key_GetCatcher( ) == 0 && keyRepeatEnabled )
|
||||
{
|
||||
SDL_EnableKeyRepeat( 0, 0 );
|
||||
keyRepeatEnabled = qfalse;
|
||||
|
@ -730,7 +730,7 @@ void IN_Frame (void)
|
|||
IN_JoyMove( );
|
||||
|
||||
// Release the mouse if the console if down and we're windowed
|
||||
if( ( cls.keyCatchers & KEYCATCH_CONSOLE ) && !r_fullscreen->integer )
|
||||
if( ( Key_GetCatcher( ) & KEYCATCH_CONSOLE ) && !r_fullscreen->integer )
|
||||
IN_DeactivateMouse( );
|
||||
else
|
||||
IN_ActivateMouse( );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue