You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
it seems that the moveListener() function for the mouse in Input.hx is called multiple times before endFrame(). This results in only a part of the value being assigned to movementX and movementY.
If changed to
if (locked) {
this.movementX += movementX;
this.movementY += movementY;
Then the value of movementX is the same as the mouse position difference between frames.
I'm on linux that might be the problem as I read somewhere that keyboard events are fired multiple times so this might also apply here. But with this fix it wouldn't matter if its fired multiple times or not.
The text was updated successfully, but these errors were encountered:
Hi,
it seems that the moveListener() function for the mouse in Input.hx is called multiple times before endFrame(). This results in only a part of the value being assigned to movementX and movementY.
If changed to
Then the value of movementX is the same as the mouse position difference between frames.
I'm on linux that might be the problem as I read somewhere that keyboard events are fired multiple times so this might also apply here. But with this fix it wouldn't matter if its fired multiple times or not.
The text was updated successfully, but these errors were encountered: