Joystick Configuration and Fixes#5477
Merged
sturnclaw merged 7 commits intopioneerspacesim:masterfrom Jan 19, 2023
Merged
Conversation
- Landing gear default operable with N key - Optional axis provided for controlling landing gear position directly with a gear lever or multiple buttons
- Fix an issue with the float slider converting its arguments to integers - Add more type information to PiGui functions
- Avoid accidentally inverting the axis - Adds a new function to write a joystick's configuration to a config file
- Supports querying axis, button, hat number and state - Can configure curve, deadzone, and half-axis mode for all joystick axes
- Allows adjusting joystick axis curves and deadzones from inside the application, as well as previewing which axis is currently deflected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is also technically a bugfix PR, it's just that the main bug it fixes never got reported...
Fixes #5357, and partially mitigates #3147. Also fixes #4976 by dint of everything in that issue being fixed in other PRs already; the "select active missile" part of that issue should be probably be split out into an item in the design docs.
I've added input bindings for landing gear (finally!), including a separate axis binding for someone crazy enough to use a physical lever or three-position switch as their landing gear control. I've also fixed some bugs in the half-axis mode for joystick triggers and exposed all axis configuration parameters to the UI (with a nice preview!) so users don't have to fiddle with the config file anymore.
2023-01-17.19-29-26.mp4