From 1ec3f60f594a71cb6cee537f67d4bf7ce754782d Mon Sep 17 00:00:00 2001 From: Anna Rose Wiggins Date: Mon, 28 Jul 2025 12:26:19 -0400 Subject: [PATCH] Update real-world example rules. --- docs/examples/multiple_files/axes.yml | 48 +++++++----------------- docs/examples/multiple_files/devices.yml | 2 +- 2 files changed, 14 insertions(+), 36 deletions(-) diff --git a/docs/examples/multiple_files/axes.yml b/docs/examples/multiple_files/axes.yml index 0794471..3056df3 100644 --- a/docs/examples/multiple_files/axes.yml +++ b/docs/examples/multiple_files/axes.yml @@ -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 diff --git a/docs/examples/multiple_files/devices.yml b/docs/examples/multiple_files/devices.yml index f86df9e..156e132 100644 --- a/docs/examples/multiple_files/devices.yml +++ b/docs/examples/multiple_files/devices.yml @@ -6,7 +6,7 @@ devices: - name: secondary type: virtual num_buttons: 74 - num_axes: 2 + num_axes: 3 - name: mouse type: virtual num_buttons: 0