[Scummvm-cvs-logs] CVS: scummvm/backends/gp32 gp32.cpp,1.22,1.23

Max Horn fingolfin at users.sourceforge.net
Sun Dec 5 09:44:15 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/gp32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26853/backends/gp32

Modified Files:
	gp32.cpp 
Log Message:
Clean up OSystem::Event

Index: gp32.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/gp32/gp32.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- gp32.cpp	28 Sep 2004 20:19:22 -0000	1.22
+++ gp32.cpp	5 Dec 2004 17:42:15 -0000	1.23
@@ -842,7 +842,7 @@
 	if (key == GPC_VK_NONE) {

 		if (lastevent==EVENT_LBUTTONDOWN) {

 			lastevent=0;

-			event.event_code = EVENT_LBUTTONUP;

+			event.type = EVENT_LBUTTONUP;

 			return true;

 		}

 		return false;

@@ -855,7 +855,7 @@
 	oldkey=key;

 	eventcount=EVENT_COUNT;

 

-	event.event_code = EVENT_KEYDOWN;

+	event.type = EVENT_KEYDOWN;

 

 	if (key & GPC_VK_FL && key & GPC_VK_FR) { // L+R = save state

 		printf("Saving game, please wait...");

@@ -903,12 +903,12 @@
 

 	if (key & GPC_VK_FA) {

 		lastevent=EVENT_LBUTTONDOWN;

-		event.event_code = EVENT_LBUTTONDOWN;

+		event.type = EVENT_LBUTTONDOWN;

 		return true;

 	}

 	if (key & GPC_VK_FB) {

 		lastevent=EVENT_RBUTTONDOWN;

-		event.event_code = EVENT_RBUTTONDOWN;

+		event.type = EVENT_RBUTTONDOWN;

 		return true;

 	}

 

@@ -932,7 +932,7 @@
 		if (my>199) my=199;

 	}

 

-	event.event_code = EVENT_MOUSEMOVE;

+	event.type = EVENT_MOUSEMOVE;

 	km.x = event.mouse.x = mx;

 	km.y = event.mouse.y = my;

 






More information about the Scummvm-git-logs mailing list