From 095727e8c31a0e10bd1665023ccb746e9e071bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D1=8F=D0=B4=D1=8F=20=D0=96=D0=B5=D0=BD=D1=8F?= Date: Fri, 18 Dec 2020 16:50:45 +0300 Subject: [PATCH] Fixed mouse jumping --- src/engine/client/input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index fcc836f54..fd2338f0b 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -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()