-
Notifications
You must be signed in to change notification settings - Fork 435
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
Commits on Feb 26, 2016
-
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.
Configuration menu - View commit details
-
Copy full SHA for 7c77870 - Browse repository at this point
Copy the full SHA 7c77870View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d1dd74 - Browse repository at this point
Copy the full SHA 4d1dd74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ded9b2 - Browse repository at this point
Copy the full SHA 3ded9b2View commit details -
this needs to be outside the #if flash conditional, that's probably w…
…hy I had it at the bottom before
Configuration menu - View commit details
-
Copy full SHA for f72cace - Browse repository at this point
Copy the full SHA f72caceView commit details -
Configuration menu - View commit details
-
Copy full SHA for ffe6838 - Browse repository at this point
Copy the full SHA ffe6838View commit details
Commits on Feb 27, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 1c9febd - Browse repository at this point
Copy the full SHA 1c9febdView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc9a674 - Browse repository at this point
Copy the full SHA dc9a674View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08aa03d - Browse repository at this point
Copy the full SHA 08aa03dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c9ca2e - Browse repository at this point
Copy the full SHA 1c9ca2eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.