mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: client: better specify rawinput enabling condition on Win32
This commit is contained in:
parent
9a42f4149f
commit
96c30371b7
@ -214,7 +214,7 @@ void IN_CheckMouseState( qboolean active )
|
|||||||
static qboolean s_bRawInput, s_bMouseGrab;
|
static qboolean s_bRawInput, s_bMouseGrab;
|
||||||
|
|
||||||
#if XASH_WIN32
|
#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
|
#else
|
||||||
qboolean useRawInput = true; // always use SDL code
|
qboolean useRawInput = true; // always use SDL code
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user