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

Fix Gamepad handling when only one axis is present #761

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

sherpal
Copy link
Contributor

@sherpal sherpal commented Aug 22, 2024

... in particular, a single connected Joy-Con.

Fixes #760

I imagine we could go one step further and handle the hypothetical case where there is 0 axis (They seem to exist*). But as I don't own one, I can't verify whether it would actually translate to the axes array to be of length 0. So I would leave it like that for now.

image

... in particular, a single connected Joy-Con.

Fixes PurpleKingdomGames#760
Copy link
Member

@davesmith00000 davesmith00000 left a comment

Choose a reason for hiding this comment

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

@sherpal - Very sorry this took such a long time to review! Looks great, many thanks. 🙏

@davesmith00000 davesmith00000 merged commit 8762461 into PurpleKingdomGames:main Nov 8, 2024
1 check 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.

Add support for lone Joy-Con (and other would be controller with only one axis)
2 participants