[Scummvm-cvs-logs] SF.net SVN: scummvm:[47175] scummvm/trunk/engines/sci/event.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Fri Jan 8 22:44:18 CET 2010


Revision: 47175
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47175&view=rev
Author:   m_kiewitz
Date:     2010-01-08 21:44:18 +0000 (Fri, 08 Jan 2010)

Log Message:
-----------
SCI: we won't do keyboard mapping for sci1late+, because otherwise Ctrl-keys won't work. I couldnt find games that use Alt-keys, so I was unable to check those as well

Modified Paths:
--------------
    scummvm/trunk/engines/sci/event.cpp

Modified: scummvm/trunk/engines/sci/event.cpp
===================================================================
--- scummvm/trunk/engines/sci/event.cpp	2010-01-08 20:25:42 UTC (rev 47174)
+++ scummvm/trunk/engines/sci/event.cpp	2010-01-08 21:44:18 UTC (rev 47175)
@@ -364,12 +364,15 @@
 	if (event.type == SCI_EVENT_KEYBOARD) {
 		// Do we still have to translate the key?
 
-		// Scancodify if appropriate
-		if (event.modifiers & SCI_KEYMOD_ALT) {
-			event.character = altify(event.character);
-		} else if (event.modifiers & SCI_KEYMOD_CTRL) {
-			//event.character = event.data;
-			event.character = controlify(event.character);
+		if (getSciVersion() <= SCI_VERSION_1_MIDDLE) {
+			// TODO: find out if altify is also not needed for sci1late+, couldnt find any game that uses those keys
+			// Scancodify if appropriate
+			if (event.modifiers & SCI_KEYMOD_ALT) {
+				event.character = altify(event.character);
+			} else if (event.modifiers & SCI_KEYMOD_CTRL) {
+				//event.character = event.data;
+				event.character = controlify(event.character);
+			}
 		}
 
 		// Numlockify if appropriate


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list