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

FlxGamepadManager: Add FlxG.gamepads.acceptMode #3280

Merged
merged 21 commits into from
Nov 1, 2024

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Oct 30, 2024

  • FlxGamepadManager: Adds acceptMode, options are:
    • BOTTOM: The bottom face button is ACCEPT and the right face button is CANCEL. This is common on western-style consoles, like XBox or American PS4/5
    • RIGHT: The right face button is ACCEPT and the bottom face button is CANCEL. This is common in Japanese PS4/5 consoles, and Nintendo consoles
    • USE_MAPPING: Behavies like BOTTOM for nearly all gamepads, but RIGHT for Nintendo Switch gamepads
  • FlxGamepad: Adds getMappedInput, which returns the device and the device specific input id
    • Change all device specific input ids to enum abstracts over int (were classes)
    • Adds ids for analog stick digital directions
  • FlxGamepadMapping: Added FlxTypedGamepadMapping<T> where T is the enum result of getRawID
    • All FlxGamepadMapping extending classes use a specific ID enum for T

@Geokureli Geokureli added this to the 5.9.0 milestone Nov 1, 2024
@Geokureli Geokureli merged commit 049e9ed into HaxeFlixel:dev Nov 1, 2024
11 checks passed
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.

1 participant