# HG changeset patch # User Bob Pendleton # Date 1244518068 0 # Node ID 8c12052ddc7bc8cbd5ad97c0904711d246f95c67 # Parent e6c113f1ea432dbb0d341c813aec282304e29625 make sure that mouse.z == 0 until it is used. diff -r e6c113f1ea43 -r 8c12052ddc7b 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;