SCUMM: GUI: Allow quitting with ALT-X and ALT-Q combinations

This commit is contained in:
AndywinXp 2022-12-28 19:15:39 +01:00
parent 606a1d0eb6
commit 995b83c546

View File

@ -125,12 +125,14 @@ void ScummEngine::parseEvent(Common::Event event) {
} else if (event.kbd.hasFlags(Common::KBD_CTRL) && event.kbd.hasFlags(Common::KBD_ALT) && event.kbd.keycode == Common::KEYCODE_s) {
_res->resourceStats();
} else if (event.kbd.hasFlags(Common::KBD_ALT) && event.kbd.keycode == Common::KEYCODE_x) {
if (_game.version < 8) {
if (isUsingOriginalGUI()) {
_keyPressed = event.kbd;
} else {
quitGame();
}
if (isUsingOriginalGUI()) {
_keyPressed = event.kbd;
} else {
quitGame();
}
} else if (event.kbd.hasFlags(Common::KBD_ALT) && event.kbd.keycode == Common::KEYCODE_q) {
if (_game.version > 4 && _game.heversion == 0) {
quitGame();
}
} else {
// Normal key press, pass on to the game.