Add gamepad mapping example.
This commit is contained in:
parent
751604c60a
commit
c355c94b5f
4 changed files with 160 additions and 0 deletions
46
docs/examples/gamepad/axes.yml
Normal file
46
docs/examples/gamepad/axes.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
rules:
|
||||
- type: axis
|
||||
input:
|
||||
device: left-stick
|
||||
axis: X
|
||||
output:
|
||||
device: primary
|
||||
axis: X
|
||||
- type: axis
|
||||
input:
|
||||
device: left-stick
|
||||
axis: Y
|
||||
output:
|
||||
device: primary
|
||||
axis: Y
|
||||
|
||||
- type: axis
|
||||
input:
|
||||
device: right-stick
|
||||
axis: X
|
||||
output:
|
||||
device: primary
|
||||
axis: RX
|
||||
- type: axis
|
||||
input:
|
||||
device: right-stick
|
||||
axis: Y
|
||||
inverted: true
|
||||
output:
|
||||
device: primary
|
||||
axis: RY
|
||||
|
||||
- type: axis
|
||||
input:
|
||||
device: right-stick
|
||||
axis: throttle
|
||||
output:
|
||||
device: primary
|
||||
axis: RZ
|
||||
- type: axis
|
||||
input:
|
||||
device: left-stick
|
||||
axis: throttle
|
||||
output:
|
||||
device: primary
|
||||
axis: Z
|
Loading…
Add table
Add a link
Reference in a new issue