changeset 1284:08e3393e9ffb

Report both absolute and relative motion
author Sam Lantinga <slouken@libsdl.org>
date Sun, 29 Jan 2006 08:18:56 +0000
parents f214b6fae45a
children c9ae23d221ea
files test/testwm.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);