Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
zeroing out the rest of the unititialize fields in mouse motion events.
Browse files Browse the repository at this point in the history
  • Loading branch information
pendletonrc committed Jun 9, 2009
1 parent ff06fc4 commit 3587b9a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/events/SDL_mouse.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3587b9a

Please sign in to comment.