mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-11-19 16:37:07 +01:00
engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input
This commit is contained in:
parent
b949da291e
commit
fb95cc9a97
@ -172,6 +172,8 @@ void IN_ToggleClientMouse( int newstate, int oldstate )
|
||||
{
|
||||
if( newstate == oldstate )
|
||||
return;
|
||||
if( m_ignore.value )
|
||||
return;
|
||||
|
||||
// since SetCursorType controls cursor visibility
|
||||
// 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
|
||||
#endif
|
||||
|
||||
if( m_ignore.value )
|
||||
return;
|
||||
|
||||
if( active && useRawInput && !host.mouse_visible && cls.state == ca_active )
|
||||
{
|
||||
if( !s_bRawInput )
|
||||
|
Loading…
Reference in New Issue
Block a user