Skip to content

Commit

Permalink
fix(Controller): add device profile for Switch Pro controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed May 8, 2024
1 parent 6f99095 commit 2687134
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-switch_pro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# yaml-language-server: $schema=../schema/composite_device_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CompositeDevice

# Name of the composite device mapping
name: Nintendo Co., Ltd. Pro Controller

# Only use this profile if *any* of the given matches matches. If this list is
# empty, then the source devices will *always* be checked.
# /sys/class/dmi/id/product_name
matches: []

# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Nintendo Co., Ltd. Pro Controller
#- group: imu
# evdev:
# name: Nintendo Co., Ltd. Pro Controller (IMU)

# The target input device(s) that the virtual device profile can use
target_devices:
- gamepad
- mouse
- keyboard

0 comments on commit 2687134

Please sign in to comment.