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 firstPressed functions in FlxGamepad #2728

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Conversation

Starmapo
Copy link
Contributor

  • firstPressedRawID now returns the first button that's pressed instead of the first button that's released
  • firstPressedID, firstJustPressedID and firstJustReleasedID now properly return NONE on XInput and Logitech controllers (before, if no buttons were detected, it would return GUIDE as opposed to NONE)

* `firstPressedRawID` now returns the first button that's pressed instead of the first button that's released
* `firstPressedID`, `firstJustPressedID` and `firstJustReleasedID` now properly work on XInput and Logitech controllers (before, if no buttons were found, it would return `GUIDE` as opposed to `NONE`)
@Geokureli Geokureli merged commit b5556c4 into HaxeFlixel:dev Feb 13, 2023
@Geokureli
Copy link
Member

thanks!

Geokureli added a commit that referenced this pull request Feb 14, 2023
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