From c30c56e8ebf962e23f00b84cdd633f24fc8da492 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 26 Mar 2026 23:49:30 +0100 Subject: [PATCH] Restore windows lock during input events processing in non-SDL verison for now --- Source/Engine/Input/Input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Engine/Input/Input.cpp b/Source/Engine/Input/Input.cpp index 8b9bd40bd..880e9d7e9 100644 --- a/Source/Engine/Input/Input.cpp +++ b/Source/Engine/Input/Input.cpp @@ -936,7 +936,9 @@ void InputService::Update() break; } } +#if PLATFORM_SDL WindowsManager::WindowsLocker.Unlock(); +#endif // Send input events for the focused window for (const auto& e : InputEvents) @@ -990,6 +992,9 @@ void InputService::Update() break; } } +#if !PLATFORM_SDL + WindowsManager::WindowsLocker.Unlock(); +#endif // Skip if game has no focus to handle the input if (!Engine::HasGameViewportFocus())