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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Wed Jul 28 16:57:35 CEST 2010


Revision: 51422
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51422&view=rev
Author:   m_kiewitz
Date:     2010-07-28 14:57:35 +0000 (Wed, 28 Jul 2010)

Log Message:
-----------
SCI: adding support for middle mouse button

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

Modified: scummvm/trunk/engines/sci/event.cpp
===================================================================
--- scummvm/trunk/engines/sci/event.cpp	2010-07-28 14:34:32 UTC (rev 51421)
+++ scummvm/trunk/engines/sci/event.cpp	2010-07-28 14:57:35 UTC (rev 51422)
@@ -313,6 +313,10 @@
 			input.type = SCI_EVENT_MOUSE_PRESS;
 			input.data = 2;
 			break;
+		case Common::EVENT_MBUTTONDOWN:
+			input.type = SCI_EVENT_MOUSE_PRESS;
+			input.data = 3;
+			break;
 		case Common::EVENT_LBUTTONUP:
 			input.type = SCI_EVENT_MOUSE_RELEASE;
 			input.data = 1;
@@ -321,6 +325,10 @@
 			input.type = SCI_EVENT_MOUSE_RELEASE;
 			input.data = 2;
 			break;
+		case Common::EVENT_MBUTTONUP:
+			input.type = SCI_EVENT_MOUSE_RELEASE;
+			input.data = 3;
+			break;
 
 			// Misc events
 		case Common::EVENT_QUIT:


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