[Scummvm-cvs-logs] SF.net SVN: scummvm:[50034] scummvm/trunk/engines/sci/engine/kevent.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat Jun 19 00:16:05 CEST 2010


Revision: 50034
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50034&view=rev
Author:   m_kiewitz
Date:     2010-06-18 22:16:05 +0000 (Fri, 18 Jun 2010)

Log Message:
-----------
SCI: set resulting type to keyboard+joystick for sci1middle+ in kMapKeyToDir - fixes keyboard controlling of mouse in all sorts of games - although this is not 100% done, the change actually happened inbetween sci1early, added fixme

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kevent.cpp

Modified: scummvm/trunk/engines/sci/engine/kevent.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kevent.cpp	2010-06-18 22:07:32 UTC (rev 50033)
+++ scummvm/trunk/engines/sci/engine/kevent.cpp	2010-06-18 22:16:05 UTC (rev 50034)
@@ -203,7 +203,12 @@
 		}
 
 		if (mover >= 0) {
-			writeSelectorValue(segMan, obj, SELECTOR(type), SCI_EVENT_JOYSTICK);
+			// FIXME: changing point was actually inbetween SCI1EARLY, we need to find out when it happened
+			//  and then find some method of finding out those specific games
+			if (getSciVersion() >= SCI_VERSION_1_MIDDLE)
+				writeSelectorValue(segMan, obj, SELECTOR(type), SCI_EVENT_KEYBOARD | SCI_EVENT_JOYSTICK);
+			else
+				writeSelectorValue(segMan, obj, SELECTOR(type), SCI_EVENT_JOYSTICK);
 			writeSelectorValue(segMan, obj, SELECTOR(message), mover);
 			return make_reg(0, 1);
 		} else


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