Conversation
Change the save routine to use the pretty version of the json writer. This has no impact on functionality, but it is a lot more friendly to humans trying to read the file. Signed-off-by: Grant Likely <[email protected]>
The calculation to apply joystick deadzone was rather unwieldy and hard to read. Break all of it out into a separate method so that the logic can be simplified. Signed-off-by: Grant Likely <[email protected]>
8d5bdce to
4b4adb6
Compare
Adds backend for mapping buttons and axes to actions in the joystick control driver. A new enum of possible actions is added, and some new methods for querying and changing the mappings is added. Signed-off-by: Grant Likely <[email protected]>
Add joystick axis and button mapping to the settings dialog. The mapping enables a small number of initial actions that can be mapped as the user likes, including pan/tilt/zoom for the axes, and selecting previous/next camera or preset, and recalling presets for the buttons. More actions will get added in the future. Fixes: #139 Signed-off-by: Grant Likely <[email protected]>
4b4adb6 to
267e8aa
Compare
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 branch refactors the joystick handling code to allow button and axis mappings to match the needs of the user.