zeroing out the rest of the unititialize fields in mouse motion events.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403637
This commit is contained in:
parent
d499c5f023
commit
d083f30b19
1 changed files with 5 additions and 3 deletions
|
@ -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.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;
|
||||
event.motion.pressure_max = mouse->pressure_max;
|
||||
event.motion.pressure_min = mouse->pressure_min;
|
||||
event.motion.cursor = mouse->current_end;
|
||||
posted = (SDL_PushEvent(&event) > 0);
|
||||
}
|
||||
mouse->last_x = mouse->x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue