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

Mouse delta position x is affected by scrolling #908

Open
CoherentThought opened this issue Feb 19, 2025 · 0 comments
Open

Mouse delta position x is affected by scrolling #908

CoherentThought opened this issue Feb 19, 2025 · 0 comments

Comments

@CoherentThought
Copy link

CoherentThought commented Feb 19, 2025

Scrolling with the mouse wheel affects the output of mouse_delta_position(). Only the x coordinate seems to be affected. A windows user was unable to replicate this issue on the discord, so possibly linux only. EndeavourOS in my case.

Was attempting to create a FPS camera, but noticed I could rotate the camera with the mouse wheel despite there being no code that should allow this. First assumed it was built into the 3D camera default settings in some way, but printing the mouse delta position revealed this function was the culprit.

Edit: The mouse x coordinate is directly affected by scrolling which means mouse_position() is also affected.

Edit: Forgot to mention this only happens when the mouse is captured

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