aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood
diff options
context:
space:
mode:
authorFilippos Karapetis2013-12-28 14:47:35 +0200
committerFilippos Karapetis2013-12-28 14:47:35 +0200
commit6ed7f1dd4e71082d3e23108bd3e001a53d10cab6 (patch)
tree4900389f86437b90cb69c4e24e75c5ee4b6e1b54 /engines/neverhood
parent9a5e5c25894fa65a6476a0bab795133735a44d8b (diff)
downloadscummvm-rg350-6ed7f1dd4e71082d3e23108bd3e001a53d10cab6.tar.gz
scummvm-rg350-6ed7f1dd4e71082d3e23108bd3e001a53d10cab6.tar.bz2
scummvm-rg350-6ed7f1dd4e71082d3e23108bd3e001a53d10cab6.zip
NEVERHOOD: Close the game menu when pressing the Escape key
Diffstat (limited to 'engines/neverhood')
-rw-r--r--engines/neverhood/menumodule.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/neverhood/menumodule.cpp b/engines/neverhood/menumodule.cpp
index 8929fb35c6..f9de63ecc6 100644
--- a/engines/neverhood/menumodule.cpp
+++ b/engines/neverhood/menumodule.cpp
@@ -195,6 +195,14 @@ void MenuModule::updateScene() {
}
uint32 MenuModule::handleMessage(int messageNum, const MessageParam &param, Entity *sender) {
+ switch(messageNum) {
+ case NM_KEYPRESS_ESC:
+ leaveModule(0);
+ break;
+ default:
+ break;
+ }
+
return Module::handleMessage(messageNum, param, sender);;
}