mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
SCUMM: GUI: Allow quitting with ALT-X and ALT-Q combinations
This commit is contained in:
parent
606a1d0eb6
commit
995b83c546
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user