Skip to content

Commit

Permalink
NEVERHOOD: Close the game menu when pressing the Escape key
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 28, 2013
1 parent 9a5e5c2 commit 6ed7f1d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/neverhood/menumodule.cpp
Expand Up @@ -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);;
}

Expand Down

0 comments on commit 6ed7f1d

Please sign in to comment.