Commit d083f30b authored by Bob Pendleton's avatar Bob Pendleton

zeroing out the rest of the unititialize fields in mouse motion events.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403637
parent d499c5f0
...@@ -466,12 +466,14 @@ SDL_SendMouseMotion(int id, int relative, int x, int y, int pressure) ...@@ -466,12 +466,14 @@ SDL_SendMouseMotion(int id, int relative, int x, int y, int pressure)
event.motion.y = mouse->y; event.motion.y = mouse->y;
event.motion.z = mouse->z; event.motion.z = mouse->z;
event.motion.pressure = mouse->pressure; event.motion.pressure = mouse->pressure;
event.motion.xrel = xrel;
event.motion.yrel = yrel;
event.motion.windowID = mouse->focus;
event.motion.pressure_max = mouse->pressure_max; event.motion.pressure_max = mouse->pressure_max;
event.motion.pressure_min = mouse->pressure_min; event.motion.pressure_min = mouse->pressure_min;
event.motion.rotation = 0;
event.motion.tilt = 0;
event.motion.cursor = mouse->current_end; event.motion.cursor = mouse->current_end;
event.motion.xrel = xrel;
event.motion.yrel = yrel;
event.motion.windowID = mouse->focus;
posted = (SDL_PushEvent(&event) > 0); posted = (SDL_PushEvent(&event) > 0);
} }
mouse->last_x = mouse->x; mouse->last_x = mouse->x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment