Fixed mouse jumping

This commit is contained in:
Дядя Женя 2020-12-18 16:50:45 +03:00
parent b05674c48d
commit 095727e8c3

View file

@ -89,6 +89,8 @@ void CInput::MouseModeRelative()
m_InputGrabbed = 1;
SDL_SetRelativeMouseMode(SDL_TRUE);
Graphics()->SetWindowGrab(true);
// We should do this call to reset relative mouse position after alt+tab
SDL_GetRelativeMouseState(0x0, 0x0);
}
int CInput::MouseDoubleClick()