From c40bf054612901470c8f77e8b3c8c14087b66c24 Mon Sep 17 00:00:00 2001 From: Anna Rose Wiggins Date: Sat, 26 Jul 2025 12:01:36 -0400 Subject: [PATCH] Update docs. --- docs/examples/ruletypes.yml | 13 +++++++++++++ docs/readme.md | 1 + 2 files changed, 14 insertions(+) diff --git a/docs/examples/ruletypes.yml b/docs/examples/ruletypes.yml index 2c976e4..7cb4b3a 100644 --- a/docs/examples/ruletypes.yml +++ b/docs/examples/ruletypes.yml @@ -54,6 +54,19 @@ rules: device: main axis: ABS_Y + # Create a single merged output axis from 2 input axes + - type: axis-combined + input_lower: + device: flightstick + axis: X + inverted: true # the lower half of the axis will often need to be inverted + input_uppper: + device: flightstick + axis: RX + output: + device: main + axis: RZ + # Straightforward button mapping - type: button input: diff --git a/docs/readme.md b/docs/readme.md index 69c4ae6..58e5453 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -32,6 +32,7 @@ All `rules` must have a `type` parameter. Valid values for this parameter are: * `button-combo` - multiple input buttons mapped to a single output. The output event will trigger when all the input conditions are met. * `button-latched` - a single button mapped to a single output, but each time the input is pressed, the output will toggle. * `axis` - a simple axis mapping +* `axis-combined` - a mapping that combines 2 input axes into a single output axis. * `axis-to-button` - causes an axis input to produce a button output. This can be repeated with variable speed proportional to the axis' input value * `axis-to-relaxis` - like axis-to-button, but produces a "relative axis" output value. This is useful for simulating mouse scrollwheel and movement events.