Hi, I recently found a bug in my game where I'm trying to move the mouse cursor with keyboard arrows. I'm using GetViewport().GetMousePosition() on the root element of the scene to get the mouse position, add a vector of shift and update it with Input.WarpMouse function.
Input.WarpMouse(GetViewport().GetMousePosition() + mouse_vel);
This works fine in windowed mode when the window is not resized.
The moment I resize the window, the function returns bogus data and actually diverges to single point in the screen.
The issue is reproducible when you select in Project settings Display->Windw->Stretch Mode to "viewport" and Aspect to "keep". If I change those to disabled, the issue no longer happens, so it must be related to the stretching code and the black bars that appear with it.
Has anyone seen this? Have you found a workaround?