mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
New last cursor position must rely on the clamped coordinates.
This commit is contained in:
parent
d6599a968a
commit
62b9cc7933
|
|
@ -473,8 +473,8 @@ SDL_SendMouseMotion(int id, int relative, int x, int y, int pressure)
|
|||
event.motion.cursor = mouse->current_end;
|
||||
posted = (SDL_PushEvent(&event) > 0);
|
||||
}
|
||||
mouse->last_x = x;
|
||||
mouse->last_y = y;
|
||||
mouse->last_x = mouse->x;
|
||||
mouse->last_y = mouse->y;
|
||||
return posted;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user