engine: platform: sdl: clear key states on losing window focus
This commit is contained in:
parent
9d2a85f11f
commit
83b5edea88
1 changed files with 4 additions and 0 deletions
|
@ -396,8 +396,12 @@ static void SDLash_ActiveEvent( int gain )
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
host.status = HOST_NOFOCUS;
|
host.status = HOST_NOFOCUS;
|
||||||
|
|
||||||
if( cls.key_dest == key_game )
|
if( cls.key_dest == key_game )
|
||||||
|
{
|
||||||
|
Key_ClearStates();
|
||||||
IN_DeactivateMouse();
|
IN_DeactivateMouse();
|
||||||
|
}
|
||||||
|
|
||||||
host.force_draw_version_time = host.realtime + 2.0;
|
host.force_draw_version_time = host.realtime + 2.0;
|
||||||
VID_RestoreScreenResolution();
|
VID_RestoreScreenResolution();
|
||||||
|
|
Loading…
Add table
Reference in a new issue