Add gamepad mapping example.

This commit is contained in:
Anna Rose Wiggins 2025-07-18 20:43:32 -04:00
parent 751604c60a
commit c355c94b5f
4 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,84 @@
rules:
- name: R Red
type: button
input:
device: right-stick
button: BTN_BASE6
output:
device: primary
button: BTN_SOUTH
- name: R Black
type: button
input:
device: right-stick
button: BTN_PINKIE
output:
device: primary
button: BTN_EAST
- name: R Pinkie
type: button
input:
device: right-stick
button: BTN_TRIGGER_HAPPY14
output:
device: primary
button: BTN_TR
- name: R Thumbstick
type: button
input:
device: right-stick
button: BTN_TOP2
output:
device: primary
button: BTN_THUMBR
- name: R Thumb Hat
type: button
input:
device: right-stick
button: BTN_TRIGGER_HAPPY9
output:
device: primary
button: BTN_START
- name: L Red
type: button
input:
device: left-stick
button: BTN_BASE6
output:
device: primary
button: BTN_NORTH
- name: L Black
type: button
input:
device: left-stick
button: BTN_PINKIE
output:
device: primary
button: BTN_WEST
- name: L Pinkie
type: button
input:
device: left-stick
button: BTN_TRIGGER_HAPPY14
output:
device: primary
button: BTN_TL
- name: L Thumbstick
type: button
input:
device: left-stick
button: BTN_TOP2
output:
device: primary
button: BTN_THUMBL
- name: L Thumb Hat
type: button
input:
device: left-stick
button: BTN_TRIGGER_HAPPY9
output:
device: primary
button: BTN_SELECT
# TODO: d-pad needs hat support