From fcce50e6fe954ed275de29da60d29cc99ce77008 Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 9 Jul 2014 16:31:12 +0200 Subject: CGE2: Hook handling of F10 into the Keyboard::getKey(). --- engines/cge2/events.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3