[Scummvm-cvs-logs] SF.net SVN: scummvm: [30070] scummvm/trunk/engines/lure

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat Dec 29 10:51:25 CET 2007


Revision: 30070
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30070&view=rev
Author:   dreammaster
Date:     2007-12-29 01:51:25 -0800 (Sat, 29 Dec 2007)

Log Message:
-----------
Added support for using scroll wheel for making selections in the Save/Restore dialog and action lists

Modified Paths:
--------------
    scummvm/trunk/engines/lure/menu.cpp
    scummvm/trunk/engines/lure/surface.cpp

Modified: scummvm/trunk/engines/lure/menu.cpp
===================================================================
--- scummvm/trunk/engines/lure/menu.cpp	2007-12-29 09:50:20 UTC (rev 30069)
+++ scummvm/trunk/engines/lure/menu.cpp	2007-12-29 09:51:25 UTC (rev 30070)
@@ -569,7 +569,8 @@
 						refreshFlag = true;
 				}
 #else
-			} else if (e.type() == Common::EVENT_LBUTTONDOWN) {
+			} else if ((e.type() == Common::EVENT_LBUTTONDOWN) ||
+					(e.type() == Common::EVENT_MBUTTONDOWN)) {
 				//mouse.waitForRelease();
 				goto bail_out;
 #endif

Modified: scummvm/trunk/engines/lure/surface.cpp
===================================================================
--- scummvm/trunk/engines/lure/surface.cpp	2007-12-29 09:50:20 UTC (rev 30069)
+++ scummvm/trunk/engines/lure/surface.cpp	2007-12-29 09:51:25 UTC (rev 30070)
@@ -885,7 +885,8 @@
 	bool doneFlag = false;
 	while (!abortFlag && !doneFlag) {
 		// Provide highlighting of lines to select a save slot
-		while (!abortFlag && !(mouse.lButton() && (selectedLine != -1)) && !mouse.rButton()) {
+		while (!abortFlag && !(mouse.lButton() && (selectedLine != -1)) 
+				&& !mouse.rButton() && !mouse.mButton()) {
 			abortFlag = events.quitFlag;
 			if (abortFlag) break;
 
@@ -949,7 +950,7 @@
 				SAVE_DIALOG_Y + SR_SAVEGAME_NAMES_Y + selectedLine * FONT_HEIGHT,
 				SAVE_DIALOG_Y + SR_SAVEGAME_NAMES_Y + (selectedLine + 1) * FONT_HEIGHT - 1);
 
-		if (mouse.lButton() || mouse.rButton()) {
+		if (mouse.lButton() || mouse.rButton() || mouse.mButton()) {
 			abortFlag = mouse.rButton();
 			mouse.waitForRelease();
 		}


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