Skip to content

Generic Development 1#2

Merged
dmadison merged 8 commits intomasterfrom
development
Nov 5, 2018
Merged

Generic Development 1#2
dmadison merged 8 commits intomasterfrom
development

Conversation

@dmadison
Copy link
Copy Markdown
Owner

@dmadison dmadison commented Nov 5, 2018

A few miscellaneous updates:

  • Adds a Simultaneous Opposite Cardinal Directions (SOCD) cleaner, to prevent the directional pad from outputting opposite directions simultaneously (required for fighting games). This can be avoided by using the setDpad function with only one input at a time.
  • Adds releaseAll and reset functions to clear all inputs and set the class to its initial values.
  • Treat joystick ID enums (JOY_LEFT and JOY_RIGHT) as buttons "L3" and "R3" when passed to the button functions.
  • Adds automatic input scaling for trigger and joystick values. User can set the input range and the values will be automatically scaled to the range of the outputs.

Apparently required for some fighting games. Using button inputs directly (press/release/set) will get around this.
For resetting the class to its initial values. Releases all set control values and clears any buffered data such as player and rumble.
@dmadison dmadison merged commit 6f35ba6 into master Nov 5, 2018
@dmadison dmadison deleted the development branch November 5, 2018 21:42
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.

1 participant