mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fixed mouse jumping
This commit is contained in:
parent
b05674c48d
commit
095727e8c3
|
@ -89,6 +89,8 @@ void CInput::MouseModeRelative()
|
||||||
m_InputGrabbed = 1;
|
m_InputGrabbed = 1;
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
Graphics()->SetWindowGrab(true);
|
Graphics()->SetWindowGrab(true);
|
||||||
|
// We should do this call to reset relative mouse position after alt+tab
|
||||||
|
SDL_GetRelativeMouseState(0x0, 0x0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CInput::MouseDoubleClick()
|
int CInput::MouseDoubleClick()
|
||||||
|
|
Loading…
Reference in a new issue