From 5304fc2573aaae88c924b45c9c2a882fcf6281e1 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Wed, 1 Jan 2025 22:25:13 +0200 Subject: [PATCH] Disable mouse warping after ending relative mode --- Source/Engine/Platform/SDL/SDLInput.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Platform/SDL/SDLInput.cpp b/Source/Engine/Platform/SDL/SDLInput.cpp index 3b4276dbb..4150e52f6 100644 --- a/Source/Engine/Platform/SDL/SDLInput.cpp +++ b/Source/Engine/Platform/SDL/SDLInput.cpp @@ -393,7 +393,10 @@ public: LOG(Error, "Failed to set mouse relative mode: {0}", String(SDL_GetError())); if (!relativeMode) - SetMousePosition(oldPosition); + { + //SDL_SyncWindow(static_cast(window)->_window); + //SetMousePosition(oldPosition); + } } };