|
|
@ -172,6 +172,8 @@ 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
|
|
|
@ -212,6 +214,9 @@ void IN_CheckMouseState( qboolean active ) |
|
|
|
qboolean useRawInput = true; // always use SDL code
|
|
|
|
qboolean useRawInput = true; // always use SDL code
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( m_ignore.value ) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if( active && useRawInput && !host.mouse_visible && cls.state == ca_active ) |
|
|
|
if( active && useRawInput && !host.mouse_visible && cls.state == ca_active ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( !s_bRawInput ) |
|
|
|
if( !s_bRawInput ) |
|
|
|