diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index 8d46a6f91..5cb9b0b2a 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -47,7 +47,7 @@ CInput::CInput() mem_zero(m_aInputState, sizeof(m_aInputState)); m_InputCounter = 1; - m_InputGrabbed = 0; + m_InputGrabbed = false; m_MouseDoubleClick = false; @@ -272,14 +272,14 @@ bool CInput::MouseRelative(float *pX, float *pY) void CInput::MouseModeAbsolute() { - m_InputGrabbed = 0; + m_InputGrabbed = false; SDL_SetRelativeMouseMode(SDL_FALSE); Graphics()->SetWindowGrab(false); } void CInput::MouseModeRelative() { - m_InputGrabbed = 1; + m_InputGrabbed = true; #if !defined(CONF_PLATFORM_ANDROID) // No relative mouse on Android SDL_SetRelativeMouseMode(SDL_TRUE); #endif diff --git a/src/engine/client/input.h b/src/engine/client/input.h index 0954ac88c..dc2191393 100644 --- a/src/engine/client/input.h +++ b/src/engine/client/input.h @@ -69,7 +69,7 @@ private: static void ConchainJoystickGuidChanged(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData); float GetJoystickDeadzone(); - int m_InputGrabbed; + bool m_InputGrabbed; char *m_pClipboardText; bool m_MouseFocus;