* Add device "presets" to make configuring virtual devices correctly easy.

* Add support for keyboard keys.
This commit is contained in:
Anna Rose Wiggins 2025-08-04 11:54:17 -04:00
parent 32fa7d27e0
commit 97e1aa83e3
7 changed files with 313 additions and 30 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