From 96c30371b74177e94e29f67225729dde6524ec78 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 27 Mar 2023 17:19:29 +0300 Subject: [PATCH] engine: client: better specify rawinput enabling condition on Win32 --- engine/client/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/input.c b/engine/client/input.c index 256a234f..7989385b 100644 --- a/engine/client/input.c +++ b/engine/client/input.c @@ -214,7 +214,7 @@ void IN_CheckMouseState( qboolean active ) static qboolean s_bRawInput, s_bMouseGrab; #if XASH_WIN32 - qboolean useRawInput = CVAR_TO_BOOL( m_rawinput ) && clgame.client_dll_uses_sdl || clgame.dllFuncs.pfnLookEvent; + qboolean useRawInput = ( CVAR_TO_BOOL( m_rawinput ) && clgame.client_dll_uses_sdl ) || clgame.dllFuncs.pfnLookEvent != NULL; #else qboolean useRawInput = true; // always use SDL code #endif