[Scummvm-cvs-logs] scummvm master -> eba0c0ff625a8ca42402496713ca29d70d94e5f1

bluegr bluegr at gmail.com
Thu Nov 7 12:48:16 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:
eba0c0ff62 WINTERMUTE: Add the keycode for the ESC key


Commit: eba0c0ff625a8ca42402496713ca29d70d94e5f1
    https://github.com/scummvm/scummvm/commit/eba0c0ff625a8ca42402496713ca29d70d94e5f1
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-11-07T03:47:38-08:00

Commit Message:
WINTERMUTE: Add the keycode for the ESC key

This is used by Looky

Changed paths:
    engines/wintermute/base/base_keyboard_state.cpp



diff --git a/engines/wintermute/base/base_keyboard_state.cpp b/engines/wintermute/base/base_keyboard_state.cpp
index 785af64..77469e0 100644
--- a/engines/wintermute/base/base_keyboard_state.cpp
+++ b/engines/wintermute/base/base_keyboard_state.cpp
@@ -276,17 +276,21 @@ uint32 BaseKeyboardState::keyCodeToVKey(Common::Event *event) {
 }
 
 enum VKeyCodes {
-	kVkSpace = 32,
-	kVkLeft  = 37,
-	kVkUp    = 38,
-	kVkRight = 39,
-	kVkDown  = 40
+	kVkEscape = 27,
+	kVkSpace  = 32,
+	kVkLeft   = 37,
+	kVkUp     = 38,
+	kVkRight  = 39,
+	kVkDown   = 40
 };
 
 //////////////////////////////////////////////////////////////////////////
 Common::KeyCode BaseKeyboardState::vKeyToKeyCode(uint32 vkey) {
 	// todo
 	switch (vkey) {
+	case kVkEscape:
+		return Common::KEYCODE_ESCAPE;
+		break;
 	case kVkSpace:
 		return Common::KEYCODE_SPACE;
 		break;






More information about the Scummvm-git-logs mailing list