make sure that mouse.z == 0 until it is used.
authorBob Pendleton <bob@pendleton.com>
Tue, 09 Jun 2009 03:27:48 +0000
changeset 3176 8c12052ddc7b
parent 3175 e6c113f1ea43
child 3177 efe3b3971e4f
make sure that mouse.z == 0 until it is used.
src/events/SDL_mouse.c
--- a/src/events/SDL_mouse.c	Mon Jun 08 21:00:52 2009 +0000
+++ b/src/events/SDL_mouse.c	Tue Jun 09 03:27:48 2009 +0000
@@ -464,6 +464,7 @@
         event.motion.state = mouse->buttonstate;
         event.motion.x = mouse->x;
         event.motion.y = mouse->y;
+        event.motion.z = mouse->z;
         event.motion.pressure = mouse->pressure;
         event.motion.xrel = xrel;
         event.motion.yrel = yrel;