From fb95cc9a9711305a7be7e9ca7675964ae5313c13 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 21 Oct 2023 18:57:57 +0300 Subject: [PATCH] engine/client: respect m_ignore in mouse client code as grabbing window breaks touch input --- engine/client/input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/client/input.c b/engine/client/input.c index 71017882..0312952c 100644 --- a/engine/client/input.c +++ b/engine/client/input.c @@ -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 )