Restore windows lock during input events processing in non-SDL verison for now

This commit is contained in:
Wojtek Figat
2026-03-26 23:49:30 +01:00
parent eab7794e3b
commit c30c56e8eb

View File

@@ -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())