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

Make analog sticks emit "fake" digital actions for left/right/up/down… #1746

Closed
wants to merge 9 commits into from

Commits on Feb 26, 2016

  1. Make analog sticks emit "fake" digital actions for left/right/up/down…

    … movement, and add ID's that make it simple to use them. Makes it easy to use an Analog stick as if it were a DPAD, a very popular input pattern.
    
    This behavior was already implemented on legacy, but the API for it was buried. I added top level FlxGamepadInputID's for the digital events, and refactored things so that Next can emit these events as well.
    Also, I added a "value" property to the FlxGamepadButton for storing last frame's analog input value, which should remove the requirement for FlxActions to call check() every frame in order to get accurate JUST_MOVED / JUST_STOPPED behavior.
    larsiusprime committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    7c77870 View commit details
    Browse the repository at this point in the history
  2. quick fix

    larsiusprime committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    4d1dd74 View commit details
    Browse the repository at this point in the history
  3. style fixes / cleanup

    larsiusprime committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    3ded9b2 View commit details
    Browse the repository at this point in the history
  4. this needs to be outside the #if flash conditional, that's probably w…

    …hy I had it at the bottom before
    larsiusprime committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    f72cace View commit details
    Browse the repository at this point in the history
  5. minor cleanup

    larsiusprime committed Feb 26, 2016
    Configuration menu
    Copy the full SHA
    ffe6838 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2016

  1. fix crash on legacy

    larsiusprime committed Feb 27, 2016
    Configuration menu
    Copy the full SHA
    1c9febd View commit details
    Browse the repository at this point in the history
  2. fix ifs

    larsiusprime committed Feb 27, 2016
    Configuration menu
    Copy the full SHA
    dc9a674 View commit details
    Browse the repository at this point in the history
  3. better "null" check

    larsiusprime committed Feb 27, 2016
    Configuration menu
    Copy the full SHA
    08aa03d View commit details
    Browse the repository at this point in the history
  4. d'oh

    larsiusprime committed Feb 27, 2016
    Configuration menu
    Copy the full SHA
    1c9ca2e View commit details
    Browse the repository at this point in the history