Skip to content

Conversation

@Arufonsu
Copy link
Contributor

This commit should fix the following issue:

2026-01-03.20-45-52.mp4

Explanation

Controllers commonly experience "stick drift" where analog sticks don't return perfectly to center (0.0, 0.0) and instead hover at small values like 0.01-0.05. Without a deadzone check, even tiny thumbstick movements cause deltaX to be non-zero, resulting in the cursor constantly drifting to the right (or other directions) pixel by pixel. With this commit, gamepads will only move the cursor when the thumbstick is pushed beyond a deadzone threshold (0.15f), effectively filtering out controller drift while still allowing intentional cursor movement with the gamepad.

Controllers commonly experience "stick drift" where analog sticks don't return perfectly to center (0.0, 0.0) and instead hover at small values like 0.01-0.05. Without a deadzone check, even tiny thumbstick movements cause deltaX to be non-zero, resulting in the cursor constantly drifting to the right (or other directions) pixel by pixel. With this commit, gamepads will only move the cursor when the thumbstick is pushed beyond a deadzone threshold (0.15f), effectively filtering out controller drift while still allowing intentional cursor movement with the gamepad.

Signed-off-by: Arufonsu <17498701+Arufonsu@users.noreply.github.com>
@Arufonsu Arufonsu added the bug Something isn't working label Jan 11, 2026
@Arufonsu Arufonsu requested a review from a team January 11, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants