Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
zeroing out the rest of the unititialize fields in mouse motion events.
  • Loading branch information
pendletonrc committed Jun 9, 2009
1 parent ff06fc4 commit 3587b9a1b61d2c1fcc36fc8258107f0b4e84b478
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/events/SDL_mouse.c
@@ -466,12 +466,14 @@ SDL_SendMouseMotion(int id, int relative, int x, int y, int pressure)
event.motion.y = mouse->y;
event.motion.z = mouse->z;
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_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;
posted = (SDL_PushEvent(&event) > 0);
}
mouse->last_x = mouse->x;

0 comments on commit 3587b9a

Please sign in to comment.