Browse Source

engine: client: better specify rawinput enabling condition on Win32

pull/2/head
Alibek Omarov 2 years ago
parent
commit
96c30371b7
  1. 2
      engine/client/input.c

2
engine/client/input.c

@ -214,7 +214,7 @@ void IN_CheckMouseState( qboolean active ) @@ -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

Loading…
Cancel
Save