aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-07-09 16:31:12 +0200
committeruruk2014-07-09 16:56:33 +0200
commitfcce50e6fe954ed275de29da60d29cc99ce77008 (patch)
tree05051aececb3c01528d24e2fe07545bd7f9ab3e0
parentf57d2ff4d6268e0bf2dd8edf419fde6b649a9f34 (diff)
downloadscummvm-rg350-fcce50e6fe954ed275de29da60d29cc99ce77008.tar.gz
scummvm-rg350-fcce50e6fe954ed275de29da60d29cc99ce77008.tar.bz2
scummvm-rg350-fcce50e6fe954ed275de29da60d29cc99ce77008.zip
CGE2: Hook handling of F10 into the Keyboard::getKey().
-rw-r--r--engines/cge2/events.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cge2/events.cpp b/engines/cge2/events.cpp
index 48febd2a85..ecb6183540 100644
--- a/engines/cge2/events.cpp
+++ b/engines/cge2/events.cpp
@@ -104,6 +104,10 @@ bool Keyboard::getKey(Common::Event &event) {
return false;
}
break;
+ case Common::KEYCODE_F10:
+ if (_vm->_commandHandler->idle())
+ _vm->switchScene(-1); // Exits the game.
+ return false;
default:
break;
}