Report both absolute and relative motion
authorSam Lantinga <slouken@libsdl.org>
Sun, 29 Jan 2006 08:18:56 +0000
changeset 1284 08e3393e9ffb
parent 1283 f214b6fae45a
child 1285 c9ae23d221ea
Report both absolute and relative motion
test/testwm.c
--- a/test/testwm.c	Sun Jan 29 08:18:06 2006 +0000
+++ b/test/testwm.c	Sun Jan 29 08:18:56 2006 +0000
@@ -210,7 +210,8 @@
 		/* Show relative mouse motion */
 		case SDL_MOUSEMOTION:
 #if 0
-			printf("Mouse relative motion: {%d,%d}\n",
+			printf("Mouse motion: {%d,%d} (%d,%d)\n",
+				event->motion.x, event->motion.y,
 				event->motion.xrel, event->motion.yrel);
 #endif
 			return(0);