-
Notifications
You must be signed in to change notification settings - Fork 127
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
Add Inversion to SingleAxis, DualAxis, and VirtualDPad #362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solid :) Changelog entry and a couple tests and this looks good to me.
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Cool, thanks. |
That's correct. Thanks for pointing that out; I'll update it! |
Fixes #247.
Adds
inverted
,inverted_x
, andinverted_y
builder-style functions forSingleAxis
,DualAxis
, andVirtualDPad
, where appropriate. TheSingleAxis
implementation uses aninverted
field, theDualAxis
implementation just inverts its internal axes, and theVirtualDPad
implementation swaps the relevant inputs.Current tests pass, but I haven't written any yet to test inversion.
Todo