make sure that mouse.z == 0 until it is used.
authorBob Pendleton
Tue, 09 Jun 2009 03:27:48 +0000
changeset 31768c12052ddc7b
parent 3175 e6c113f1ea43
child 3177 efe3b3971e4f
make sure that mouse.z == 0 until it is used.
src/events/SDL_mouse.c
     1.1 --- a/src/events/SDL_mouse.c	Mon Jun 08 21:00:52 2009 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Tue Jun 09 03:27:48 2009 +0000
     1.3 @@ -464,6 +464,7 @@
     1.4          event.motion.state = mouse->buttonstate;
     1.5          event.motion.x = mouse->x;
     1.6          event.motion.y = mouse->y;
     1.7 +        event.motion.z = mouse->z;
     1.8          event.motion.pressure = mouse->pressure;
     1.9          event.motion.xrel = xrel;
    1.10          event.motion.yrel = yrel;