Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LWJGL2] Mouse Dx/Dy reporting incorrectly at high mouse polling rates #163

Open
Sk1er opened this issue May 30, 2021 · 1 comment
Open

Comments

@Sk1er
Copy link

Sk1er commented May 30, 2021

LWJGL2 is used by Minecraft until version 1.13. Millions of players use versions prior to this weekly and are affected by this bug.

When using a high poll rate (tested with 1000), the values returned by Mouse.getDx() and Mouse.getDy() become invalid and do not represent the true state of how the mouse has moved. When moving smoothly, there will be random large single inputs that may dramatically move the cursor more than it should. These happen randomly and I have found no pattern that causes them. (Example https://youtu.be/FOsleZsyzWE). I did some further digging and this seems only to happen when the mouse is grabbed (Mouse.setGrabbed(true)). The root cause seems to be somewhere in native code but that's outside my skillset to push further

@Sk1er Sk1er changed the title Mouse Dx/Dy reporting incorrectly at high mouse polling rates [LWJGL2] Mouse Dx/Dy reporting incorrectly at high mouse polling rates May 30, 2021
@ghost
Copy link

ghost commented Sep 12, 2022

I do not even know what Mouse.getDx() and Mouse.getDy() is used for anyways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant