macroquad
macroquad copied to clipboard
Mouse delta position x is affected by scrolling
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