mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Don't grab mouse till UI loads.
This commit is contained in:
parent
06231971ed
commit
a87b059ab7
1 changed files with 2 additions and 10 deletions
|
@ -1050,16 +1050,8 @@ void IN_Init( void )
|
||||||
SDL_EnableKeyRepeat( SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL );
|
SDL_EnableKeyRepeat( SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL );
|
||||||
keyRepeatEnabled = qtrue;
|
keyRepeatEnabled = qtrue;
|
||||||
|
|
||||||
if( in_mouse->value )
|
mouseAvailable = ( in_mouse->value != 0 );
|
||||||
{
|
|
||||||
mouseAvailable = qtrue;
|
|
||||||
IN_ActivateMouse( );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IN_DeactivateMouse( );
|
IN_DeactivateMouse( );
|
||||||
mouseAvailable = qfalse;
|
|
||||||
}
|
|
||||||
|
|
||||||
appState = SDL_GetAppState( );
|
appState = SDL_GetAppState( );
|
||||||
Cvar_SetValue( "com_unfocused", !( appState & SDL_APPINPUTFOCUS ) );
|
Cvar_SetValue( "com_unfocused", !( appState & SDL_APPINPUTFOCUS ) );
|
||||||
|
|
Loading…
Reference in a new issue