Release all keys on pause.

Fixes #18767

Not sure about merging for the 1.17 series though, maybe someone really
likes to bring up the pause menu briefly while holding a direction.. we
could actually handle that with some extra logic.
This commit is contained in:
Henrik Rydgård committed 2024-01-29 18:41:43 +01:00
1 parent f02142c5c0
commit 7920d3a44b
3 files changed
+40

No files matched your search

+1
View File
@@ -496,6 +496,7 @@ void EmuScreen::focusChanged(ScreenFocusChange focusChange) {
switch (focusChange) {
case ScreenFocusChange::FOCUS_LOST_TOP:
g_Config.TimeTracker().Stop(gameID);
controlMapper_.ReleaseAll();
break;
case ScreenFocusChange::FOCUS_BECAME_TOP:
g_Config.TimeTracker().Start(gameID);