diff --git a/Source/Engine/Platform/SDL/SDLInput.cpp b/Source/Engine/Platform/SDL/SDLInput.cpp index 98ccdba2e..6f4b445dd 100644 --- a/Source/Engine/Platform/SDL/SDLInput.cpp +++ b/Source/Engine/Platform/SDL/SDLInput.cpp @@ -418,6 +418,7 @@ public: else { SDL_SetWindowMouseRect(windowHandle, oldScreenRect); + SDL_WarpMouseInWindow(windowHandle, oldPosition.X, oldPosition.Y); oldScreenRect = nullptr; relativeModeWindow = nullptr; }