diff options
author | Zack Middleton <zturtleman@gmail.com> | 2011-08-05 19:47:33 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 23:26:57 +0000 |
commit | 7419b145d79e5eee5c5992bb5926217433e93d30 (patch) | |
tree | 592f9a52bbb4b32f704a3ccdfe4f113ac37c1435 /src/sdl/sdl_input.c | |
parent | 4844094aca6e108dca9782c864bf24aba4dbd669 (diff) |
Don't grab mouse till UI loads.
Diffstat (limited to 'src/sdl/sdl_input.c')
-rw-r--r-- | src/sdl/sdl_input.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index 4268a976..08efbfa5 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -1112,16 +1112,8 @@ void IN_Init( void ) SDL_EnableKeyRepeat( SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL ); keyRepeatEnabled = qtrue; - if( in_mouse->value ) - { - mouseAvailable = qtrue; - IN_ActivateMouse( ); - } - else - { - IN_DeactivateMouse( ); - mouseAvailable = qfalse; - } + mouseAvailable = ( in_mouse->value != 0 ); + IN_DeactivateMouse( ); appState = SDL_GetAppState( ); Cvar_SetValue( "com_unfocused", !( appState & SDL_APPINPUTFOCUS ) ); |