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

Commit

Permalink
make sure that mouse.z == 0 until it is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
pendletonrc committed Jun 9, 2009
1 parent f4cf6c5 commit f2464df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/events/SDL_mouse.c
Expand Up @@ -464,6 +464,7 @@ SDL_SendMouseMotion(int id, int relative, int x, int y, int pressure)
event.motion.state = mouse->buttonstate;
event.motion.x = mouse->x;
event.motion.y = mouse->y;
event.motion.z = mouse->z;
event.motion.pressure = mouse->pressure;
event.motion.xrel = xrel;
event.motion.yrel = yrel;
Expand Down

0 comments on commit f2464df

Please sign in to comment.