Skip to content

[SDL] Uses right stick to move cursor + only shows after first move - #2936

Merged
nesbox merged 2 commits into
nesbox:mainfrom
imsys:gamepad-cursor
Sep 18, 2026
Merged

nesbox merged 2 commits into
nesbox:mainfrom
imsys:gamepad-cursor

Conversation

@imsys

@imsys imsys commented May 5, 2026

Copy link
Copy Markdown
Contributor

This is mainly addressing issues I mentioned when running it on handheld devices. #2912

At least for now, I have not add any cursor auto-hide, as hiding may be more contentious as to time length before hiding or if hiding is appropriated at all, so maybe it would be better in a separated PR.

Also hides the cursor when no movement has occurred.
@nesbox

nesbox commented Sep 18, 2026

Copy link
Copy Markdown
Owner

The moved flag and the fractional stick accumulator both read right. One thing worth naming out loud: the right stick stops mirroring the d-pad, and the dead zone is the d-pad's AXIS_THRESHOLD (50%), so the cursor only moves past half travel. Branch refreshed onto main.

@nesbox nesbox left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The moved flag and the fractional stick accumulator both read right. Naming it out loud: the right stick stops mirroring the d-pad, and the dead zone is the d-pad's AXIS_THRESHOLD (50%), so the cursor only moves past half travel.

@nesbox
nesbox merged commit 333eca5 into nesbox:main Sep 18, 2026
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants