Mercurial > sdl-ios-xcode
changeset 3179:9b34679fda8b
zeroing out the rest of the unititialize fields in mouse motion events.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Tue, 09 Jun 2009 15:45:33 +0000 |
parents | 72edc980789b |
children | 77d6336711fc |
files | src/events/SDL_mouse.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/events/SDL_mouse.c Tue Jun 09 08:56:43 2009 +0000 +++ b/src/events/SDL_mouse.c Tue Jun 09 15:45:33 2009 +0000 @@ -466,12 +466,14 @@ event.motion.y = mouse->y; event.motion.z = mouse->z; event.motion.pressure = mouse->pressure; + event.motion.pressure_max = mouse->pressure_max; + event.motion.pressure_min = mouse->pressure_min; + event.motion.rotation = 0; + event.motion.tilt = 0; + event.motion.cursor = mouse->current_end; event.motion.xrel = xrel; event.motion.yrel = yrel; event.motion.windowID = mouse->focus; - event.motion.pressure_max = mouse->pressure_max; - event.motion.pressure_min = mouse->pressure_min; - event.motion.cursor = mouse->current_end; posted = (SDL_PushEvent(&event) > 0); } mouse->last_x = mouse->x;