[SDL] Mouse relative position wrong values
sabotage3d at gmail.com
Sun Sep 21 10:13:10 PDT 2014
I am getting weird mouse relative position with SDL 2.0.3 .
The first mouse motion after the mouse click gives huge values after that
the relative coords are correct is there a workaround or I have to
calculate relative mouse coordinates myself ?
I am testing the code under OSX and IOS . Or if there is a way to ignore
the first event.
This is example code:
x = evt.motion.xrel
y = evt.motion.yrel
First two clicks on the screen.
INFO: x: -22, y: -354
INFO: x: -184, y: 808
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL