[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.82,1.83

Pawel Kolodziejski aquadran at users.sourceforge.net
Tue Mar 18 11:27:01 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv8357

Modified Files:
	script_v6.cpp 
Log Message:
added input keys support for dig ingame

Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- script_v6.cpp	18 Mar 2003 16:13:51 -0000	1.82
+++ script_v6.cpp	18 Mar 2003 19:26:00 -0000	1.83
@@ -2672,21 +2672,36 @@
 		   13 = thrust
 		   336 = thrust
 		   328 = thrust
-		   27 = abord
+		   27 = abort
 		   97 = left
 		   331 = left
 		   115 = right
-		   333 = tight
+		   333 = right
 		 */
 
-		//FIXME: this is hack to allow turn on light bridge, 
-		//How to check is left button pressed ?
-		if ((_gameId == GID_DIG) && (args[1] == 13)) {
-			push(1);
-			break;
+
+		if((args[1] == 27) && (_lastKeyHit == 27)) {
+			push(1); // abort
+			return;
+		}
+
+		if( ((args[1] == 328) || (args[1] == 336) || (args[1] == 13)) &&
+			((_vars[VAR_LEFTBTN_HOLD]) || (_lastKeyHit == 13) || (_lastKeyHit == 274) ||
+			(_lastKeyHit == 273)) ) {
+			push(1); // thrust
+			return;
+		}
+
+		if(((args[1] == 97) || (args[1] == 331)) && (_lastKeyHit == 276)) {
+			push(1); // left
+			return;
+		}
+		
+		if(((args[1] == 115) || (args[1] == 333)) && (_lastKeyHit == 275)) {
+			push(1); // right
+			return;
 		}
 
-		warning("o6_kernelGetFunctions: getInput(%d) against %d", args[1], _lastKeyHit);
 		push(0);
 		break;
 	case 212:





More information about the Scummvm-git-logs mailing list