[Scummvm-git-logs] scummvm master -> 0ffd1f2870fd1929505ef83aef31c17ca2bbfcfa
aquadran
noreply at scummvm.org
Tue Oct 29 15:22:33 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0ffd1f2870 WINTERMUTE: Purge keyboard events after esc keypress in bink player loop to avoid trigger game menu
Commit: 0ffd1f2870fd1929505ef83aef31c17ca2bbfcfa
https://github.com/scummvm/scummvm/commit/0ffd1f2870fd1929505ef83aef31c17ca2bbfcfa
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2024-10-29T16:22:25+01:00
Commit Message:
WINTERMUTE: Purge keyboard events after esc keypress in bink player loop to avoid trigger game menu
Changed paths:
engines/wintermute/ext/wme_vlink.cpp
diff --git a/engines/wintermute/ext/wme_vlink.cpp b/engines/wintermute/ext/wme_vlink.cpp
index 04fd74370f2..f9a4670b671 100644
--- a/engines/wintermute/ext/wme_vlink.cpp
+++ b/engines/wintermute/ext/wme_vlink.cpp
@@ -142,6 +142,7 @@ bool SXVlink::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack,
if (event.type == Common::EVENT_KEYDOWN) {
if (event.kbd.keycode == Common::KEYCODE_ESCAPE) {
_videoFinished = true;
+ g_system->getEventManager()->purgeKeyboardEvents();
}
} else if (event.type == Common::EVENT_SCREEN_CHANGED) {
_gameRef->_renderer->onWindowChange();
More information about the Scummvm-git-logs
mailing list