comparison src/events/SDL_mouse.c @ 3176:8c12052ddc7b

make sure that mouse.z == 0 until it is used.
author Bob Pendleton <bob@pendleton.com>
date Tue, 09 Jun 2009 03:27:48 +0000
parents 8f3fd508734b
children 9b34679fda8b
comparison
equal deleted inserted replaced
3175:e6c113f1ea43 3176:8c12052ddc7b
462 event.motion.type = SDL_MOUSEMOTION; 462 event.motion.type = SDL_MOUSEMOTION;
463 event.motion.which = (Uint8) index; 463 event.motion.which = (Uint8) index;
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.pressure = mouse->pressure; 468 event.motion.pressure = mouse->pressure;
468 event.motion.xrel = xrel; 469 event.motion.xrel = xrel;
469 event.motion.yrel = yrel; 470 event.motion.yrel = yrel;
470 event.motion.windowID = mouse->focus; 471 event.motion.windowID = mouse->focus;
471 event.motion.pressure_max = mouse->pressure_max; 472 event.motion.pressure_max = mouse->pressure_max;