On Linux, (of_v0.10.1_linux64gcc6_release) I get mouse drift in the Y axis. E.g. if I move my mouse up and down on the spot, the cursor gradually rises up the Y axis, relative to the operating system cursor.
And then using that pos to draw the cursor. If am doing some transforms on the pos coordinate, but nothing cumulative, and and I log the value of pos before doing any transforms, I can see that the value is drifting upwards.
Before I log this on github, Is this a known issue? Or is there anything dumb I might be doing that’s causing it.
Also are there any obvious fixes or workarounds?
I’ve been stuck on this for hours, and I need to run a study with this software on Mon. - any help appreciated
In Draw(), and move the mouse up and down on the spot (up 1cm, down 1cm, over and again, so that the mouse never moves up or down more than 1 cm from its original position) the circle on screen nonetheless drifts upwards over time.
I have just now isolated the problem more precisely. This only happens when the OS cursor is hidden, and fullscreen is set.
With this code, if you move your mouse up and down on the spot repeatedly, the cursor will rise up the screen, until every 1000th frame, when ofShowCursor() is called - at that point the cursor position resets to match the OS cursor position.
I’m working around this by not using fullscreen mode (which actually doesn’t launch into fullscreen on linux I think, but does hide the OS cursor), by using this fullscreen mode in linux with glut!! to launch into fullscreen.
The issue for me was that OS cursor would appear when you moved over the top info bar, which would be distracting in my study. This removes that specific problem.
I’ll raise the issue on github anyway. So far as I can see this behaviour is down to the call to
more detail on this in case anyone else is suffering with it.
It looks like it may be an OS issue, and possibly device specific.
I accidentally discovered today that the behaviour described above disappears if my mouse settings are changed.
Specifically if I run this xinput --set-prop "Logitech G300s Optical Gaming Mouse" "libinput Accel Speed" 1