|
|
@ -172,8 +172,6 @@ void IN_ToggleClientMouse( int newstate, int oldstate ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( newstate == oldstate ) |
|
|
|
if( newstate == oldstate ) |
|
|
|
return; |
|
|
|
return; |
|
|
|
if( m_ignore.value ) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// since SetCursorType controls cursor visibility
|
|
|
|
// since SetCursorType controls cursor visibility
|
|
|
|
// execute it first, and then check mouse grab state
|
|
|
|
// execute it first, and then check mouse grab state
|
|
|
@ -194,6 +192,10 @@ void IN_ToggleClientMouse( int newstate, int oldstate ) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// don't leave the user without cursor if they enabled m_ignore
|
|
|
|
|
|
|
|
if( m_ignore.value ) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if( oldstate == key_game ) |
|
|
|
if( oldstate == key_game ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
IN_DeactivateMouse(); |
|
|
|
IN_DeactivateMouse(); |
|
|
|