Skip to content

Add joystick axis/button mappings#230

Merged
glikely merged 4 commits intomainfrom
add-joystick-mappings
May 19, 2025
Merged

Add joystick axis/button mappings#230
glikely merged 4 commits intomainfrom
add-joystick-mappings

Conversation

@glikely
Copy link
Owner

@glikely glikely commented May 19, 2025

This branch refactors the joystick handling code to allow button and axis mappings to match the needs of the user.

glikely added 2 commits May 14, 2025 15:21
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]>
@glikely glikely force-pushed the add-joystick-mappings branch 3 times, most recently from 8d5bdce to 4b4adb6 Compare May 19, 2025 16:31
glikely added 2 commits May 19, 2025 17:36
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]>
@glikely glikely force-pushed the add-joystick-mappings branch from 4b4adb6 to 267e8aa Compare May 19, 2025 16:38
@glikely glikely merged commit 267e8aa into main May 19, 2025
5 of 6 checks passed
@glikely glikely deleted the add-joystick-mappings branch June 20, 2025 12:27
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