SFML community forums
Help => Window => Topic started by: dogunbound on January 02, 2023, 01:36:56 pm
-
A simple question just reworded:
Is it possible for a MouseButtonPressed event to have different x, and y positions for the mouse's coordinates than the previous MouseMove event?
Answer: Yes
-
The events are fired independently, so we can't/shouldn't make any assumptions.
Just as an example, again not to make any assumptions on the order or relation between the events, you could get the follow event queue:
MouseMoved (x: 10, y: 20)
MouseButtonPressed (x: 11, y: 20)
MouseMoved (x: 11, y: 20)