[Scummvm-git-logs] scummvm master -> 68832fc7846034d7600cd32e21ad8416dc3c5680
aquadran
noreply at scummvm.org
Sun Aug 16 07:31:15 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:
68832fc784 WINTERMUTE: Fixed game pause handling
Commit: 68832fc7846034d7600cd32e21ad8416dc3c5680
https://github.com/scummvm/scummvm/commit/68832fc7846034d7600cd32e21ad8416dc3c5680
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2026-08-16T09:31:02+02:00
Commit Message:
WINTERMUTE: Fixed game pause handling
Changed paths:
engines/wintermute/base/base_game.cpp
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index 63988d11971..52f2a1d9f02 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -4946,13 +4946,13 @@ bool BaseGame::handleKeypress(Common::Event *event, bool printable) {
return true;
}
- if (handleAccessKey(event, printable)) {
+ _keyboardState->readKey(event);
+ _keyboardState->handleKeyPress(event);
+
+ if (handleAccessKey(event, _keyboardState->isCurrentPrintable())) {
return true;
}
- _keyboardState->handleKeyPress(event);
- _keyboardState->readKey(event);
-
if (_focusedWindow) {
if (!_game->_focusedWindow->handleKeypress(event, _keyboardState->isCurrentPrintable())) {
/*if (event->type != SDL_TEXTINPUT) {*/
@@ -4995,7 +4995,7 @@ bool BaseGame::handleAccessKey(Common::Event *event, bool printable) {
}
}
if (printable && _accessKeyboardPause) {
- if (event->kbd.keycode == Common::KEYCODE_SPACE &&
+ if (event->kbd.keycode == Common::KEYCODE_p &&
(event->kbd.flags & Common::KBD_CTRL)) {
_accessGlobalPaused = !_accessGlobalPaused;
if (_accessGlobalPaused) {
@@ -5028,7 +5028,7 @@ bool BaseGame::accessPause() {
UIText *sta = new UIText(_game);
sta->_parent = _accessShieldWin;
_accessShieldWin->_widgets.add(sta);
- sta->setText(_stringTable->expandStatic("/SYSENG0040/Game paused. Press Ctrl+Space to resume."));
+ sta->setText(_stringTable->expandStatic("/SYSENG0040/Game paused. Press Ctrl+p to resume."));
sta->_sharedFonts = true;
sta->_font = _systemFont;
sta->sizeToFit();
More information about the Scummvm-git-logs
mailing list