Mercurial > sdl-ios-xcode
comparison src/events/SDL_mouse.c @ 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 | 8c12052ddc7b |
children | 51750b7a966f |
comparison
equal
deleted
inserted
replaced
3178:72edc980789b | 3179:9b34679fda8b |
---|---|
464 event.motion.state = mouse->buttonstate; | 464 event.motion.state = mouse->buttonstate; |
465 event.motion.x = mouse->x; | 465 event.motion.x = mouse->x; |
466 event.motion.y = mouse->y; | 466 event.motion.y = mouse->y; |
467 event.motion.z = mouse->z; | 467 event.motion.z = mouse->z; |
468 event.motion.pressure = mouse->pressure; | 468 event.motion.pressure = mouse->pressure; |
469 event.motion.pressure_max = mouse->pressure_max; | |
470 event.motion.pressure_min = mouse->pressure_min; | |
471 event.motion.rotation = 0; | |
472 event.motion.tilt = 0; | |
473 event.motion.cursor = mouse->current_end; | |
469 event.motion.xrel = xrel; | 474 event.motion.xrel = xrel; |
470 event.motion.yrel = yrel; | 475 event.motion.yrel = yrel; |
471 event.motion.windowID = mouse->focus; | 476 event.motion.windowID = mouse->focus; |
472 event.motion.pressure_max = mouse->pressure_max; | |
473 event.motion.pressure_min = mouse->pressure_min; | |
474 event.motion.cursor = mouse->current_end; | |
475 posted = (SDL_PushEvent(&event) > 0); | 477 posted = (SDL_PushEvent(&event) > 0); |
476 } | 478 } |
477 mouse->last_x = mouse->x; | 479 mouse->last_x = mouse->x; |
478 mouse->last_y = mouse->y; | 480 mouse->last_y = mouse->y; |
479 return posted; | 481 return posted; |