-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(MSI Claw): Add support for MSI Claw.
- Loading branch information
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
rootfs/usr/share/inputplumber/capability_maps/msiclaw_type1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v1.json | ||
# Schema version number | ||
version: 1 | ||
|
||
# The type of configuration schema | ||
kind: CapabilityMap | ||
|
||
# Name for the device event map | ||
name: MSI Claw Type 1 | ||
|
||
# Unique identifier of the capability mapping | ||
id: claw1 | ||
|
||
# List of mapped events that are activated by a specific set of activation keys. | ||
mapping: | ||
- name: Guide | ||
source_events: | ||
- keyboard: KeyF16 | ||
target_event: | ||
gamepad: | ||
button: Guide | ||
- name: QuickAccess | ||
source_events: | ||
- keyboard: KeyF15 | ||
target_event: | ||
gamepad: | ||
button: QuickAccess | ||
|
||
# List of events to filter from the source devices | ||
filtered_events: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json | ||
# Schema version number | ||
version: 1 | ||
|
||
# The type of configuration schema | ||
kind: CompositeDevice | ||
|
||
# Name of the composite device mapping | ||
name: MSI Claw | ||
|
||
# Only allow a single source device per composite device of this type. | ||
single_source: false | ||
|
||
# Only use this profile if *any* of the given matches match. If this list is | ||
# empty, then the source devices will *always* be checked. | ||
# /sys/class/dmi/id/product_name | ||
matches: | ||
- dmi_data: | ||
product_name: "Claw A1M" | ||
sys_vendor: "Micro-Star International Co., Ltd." | ||
|
||
# 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: | ||
# Extra Buttons | ||
- group: keyboard | ||
evdev: | ||
name: AT Translated Set 2 keyboard | ||
phys_path: isa0060/serio0/input0 | ||
|
||
# Gamepad | ||
- group: gamepad | ||
evdev: | ||
vendor_id: "0db0" | ||
product_id: "1901" | ||
phys_path: "usb-0000:00:14.0-9/input0" | ||
|
||
# IMU | ||
- group: imu | ||
iio: | ||
name: accel_3d | ||
mount_matrix: | ||
x: [0, 1, 0] | ||
y: [0, 0, -1] | ||
z: [-1, 0, 0] | ||
- group: imu | ||
iio: | ||
name: gyro_3d | ||
mount_matrix: | ||
x: [0, 1, 0] | ||
y: [0, 0, -1] | ||
z: [-1, 0, 0] | ||
|
||
# The target input device(s) that the virtual device profile can use | ||
target_devices: | ||
- xbox-elite | ||
- mouse | ||
- keyboard | ||
|
||
# The ID of a device event mapping in the 'event_maps' folder | ||
capability_map_id: claw1 |