Support keyboard buttons and add presets. (#14)

Reviewed-on: #14
Co-authored-by: Anna Rose Wiggins <annabunches@gmail.com>
Co-committed-by: Anna Rose Wiggins <annabunches@gmail.com>
This commit is contained in:
Anna Rose Wiggins 2025-08-04 19:55:56 +00:00 committed by Anna Rose Wiggins
parent 61fe5208e6
commit 838449000c
12 changed files with 492 additions and 133 deletions

View file

@ -1,19 +1,7 @@
devices:
- name: primary
type: virtual
num_axes: 6
buttons:
- BTN_EAST
- BTN_SOUTH
- BTN_NORTH
- BTN_WEST
- BTN_TL
- BTN_TR
- BTN_SELECT
- BTN_START
- BTN_MODE
- BTN_THUMBL
- BTN_THUMBR
preset: gamepad
- name: right-stick
type: physical
device_name: VIRPIL Controls 20220407 R-VPC Stick MT-50CM2

View file

@ -1,5 +1,5 @@
## joystick -> gamepad mapping
This is an incomplete example for mapping dual flightsticks (Virpil Constellation Alphas) to gamepad outputs, to support dual-joystick play in games that expect a console-style gamepad. This has been tested on Steam, and it successfully recognizes this as a gamepad.
This is an incomplete example for mapping dual flightsticks (Virpil Constellation Alphas) to gamepad outputs, to support dual-joystick play in games that expect a console-style gamepad. This has been tested on Outer Wilds running in Steam.
Not every possible input is mapped here, this is just a somewhat minimal example.

View file

@ -1,18 +1,13 @@
devices:
- name: primary
type: virtual
num_buttons: 74
num_axes: 8
preset: joystick
- name: secondary
type: virtual
num_buttons: 74
num_axes: 3
preset: joystick
- name: mouse
type: virtual
num_buttons: 0
num_axes: 0
rel_axes:
- REL_WHEEL
preset: mouse
- name: right-stick
type: physical
device_name: VIRPIL Controls 20220407 R-VPC Stick MT-50CM2