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

Provide support for buttons and D-pads mapped to half axes. #42799

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

madmiraal
Copy link
Contributor

#38151 (and the 3.2 non-compat breaking version #38724) provided support for half axes and inverted axes, but they did not implement support for buttons or D-pads mapped to half axes. Worse, D-pad inputs are expected to be mapped to buttons; so break when they're not. This PR provides support for mapping buttons and D-pads to half axes.

Should fix #41065, but I don't have a controller that has this kind of mapping; so it needs testing.

@madmiraal
Copy link
Contributor Author

madmiraal commented Oct 15, 2020

Updated to include a fix for axes mapped to buttons and D-pads and mappings to negative half-axes not working.

@madmiraal madmiraal force-pushed the fix-41065 branch 5 times, most recently from 9bf16cc to 59b7913 Compare October 18, 2020 15:55
@madmiraal
Copy link
Contributor Author

Updated to include fix for bug causing D-Pad buttons to stick.

@akien-mga akien-mga merged commit b370aa7 into godotengine:master Oct 26, 2020
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Controller doesn't work as expected in v3.2.3RC3
2 participants