[Scummvm-cvs-logs] scummvm master -> 6ed7f1dd4e71082d3e23108bd3e001a53d10cab6

bluegr bluegr at gmail.com
Sat Dec 28 13:48:28 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
6ed7f1dd4e NEVERHOOD: Close the game menu when pressing the Escape key


Commit: 6ed7f1dd4e71082d3e23108bd3e001a53d10cab6
    https://github.com/scummvm/scummvm/commit/6ed7f1dd4e71082d3e23108bd3e001a53d10cab6
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-12-28T04:47:35-08:00

Commit Message:
NEVERHOOD: Close the game menu when pressing the Escape key

Changed paths:
    engines/neverhood/menumodule.cpp



diff --git a/engines/neverhood/menumodule.cpp b/engines/neverhood/menumodule.cpp
index 8929fb3..f9de63e 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);;
 }
 






More information about the Scummvm-git-logs mailing list