[Scummvm-git-logs] scummvm master -> de7edc6d049965b4f28050708068806f51f0afd3
bluegr
noreply at scummvm.org
Thu Apr 16 12:22:24 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
de7edc6d04 GRIM: Clear pending events when resuming from paused state
Commit: de7edc6d049965b4f28050708068806f51f0afd3
https://github.com/scummvm/scummvm/commit/de7edc6d049965b4f28050708068806f51f0afd3
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2026-04-16T15:22:20+03:00
Commit Message:
GRIM: Clear pending events when resuming from paused state
Fixes bug #16667
A Ctrl+F5 combo to bring up the GMM (and pause the engine) would result in Ctrl being "stuck" as pressed as far as the engine is concerned. This fix will unset the modifier key (eg. Ctrl) from the pressed state for the engine after resuming.
Changed paths:
engines/grim/grim.cpp
diff --git a/engines/grim/grim.cpp b/engines/grim/grim.cpp
index 8c4d9c8e749..d006b196b9f 100644
--- a/engines/grim/grim.cpp
+++ b/engines/grim/grim.cpp
@@ -1679,6 +1679,13 @@ void GrimEngine::pauseEngineIntern(bool pause) {
_pauseStartTime = _system->getMillis();
} else {
_frameStart += _system->getMillis() - _pauseStartTime;
+
+ // This "clear event queue" call is added to clear any keys registered as pressed
+ // when the pause occured and their KEYUP event was not handled by the engine
+ // (because it was paused) but it was consumed externally and is no longer pending in the event queue.
+ // The call also clears any pending (at the time of the pause) keyboard or mouse events.
+ // It addresses bug #16667.
+ clearEventQueue();
}
}
More information about the Scummvm-git-logs
mailing list