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