Add support for combining 2 axes into one virtual axis. (#11)

Reviewed-on: #11
This commit is contained in:
Anna Rose Wiggins 2025-07-28 17:45:16 +00:00
parent 7b520af24a
commit 3196d4ea22
14 changed files with 321 additions and 61 deletions

View file

@ -66,27 +66,20 @@ rules:
# Vertical thrust is on the VPC "paddles" in the main flight mode
- type: axis
name: translation up
- type: axis-combined
name: translation vertical
modes:
- main
input:
device: right-stick
axis: ABS_THROTTLE
output:
device: primary
axis: ABS_THROTTLE
- type: axis
name: translation down
modes:
- main
input:
input_lower:
device: left-stick
axis: ABS_THROTTLE
axis: Throttle
inverted: true
input_upper:
device: right-stick
axis: Throttle
output:
device: primary
axis: ABS_RUDDER
axis: RZ
# By default, the left thumbstick controls tractor beam via mousewheel
- type: axis-to-relaxis
@ -125,30 +118,15 @@ rules:
# In Mining mode, we move vertical thrust to the left thumbstick
# and remap the right paddle to be mining laser power
- type: axis
name: translation up alternate
name: translation up/down alternate
modes:
- mining
input:
device: left-stick
axis: RY
deadzone_start: 29250
deadzone_end: 64000
output:
device: primary
axis: ABS_THROTTLE
- type: axis
name: translation down alternate
modes:
- mining
input:
device: left-stick
axis: RY
deadzone_start: 0
deadzone_end: 30500
output:
device: primary
axis: ABS_RUDDER
axis: RZ
- type: axis
name: mining laser
@ -156,7 +134,7 @@ rules:
- mining
input:
device: right-stick
axis: ABS_THROTTLE
axis: Throttle
output:
device: primary
axis: RZ
axis: Throttle