mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Use bool
instead of int
for m_InputGrabbed
This commit is contained in:
parent
25872820d7
commit
c2e8f6738a
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue