Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions rootfs/usr/share/inputplumber/capability_maps/msiclaw_type2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 2

# Unique identifier of the capability mapping
id: claw2

# List of mapped events that are activated by a specific set of activation keys.
mapping:
- name: Guide (Short)
source_events:
- keyboard: KeyF15
- keyboard: KeyG
target_event:
gamepad:
button: Guide
- name: Guide (Long)
source_events:
- keyboard: KeyF15
- keyboard: KeyTab
target_event:
gamepad:
button: Guide
- name: QuickAccess
source_events:
- keyboard: KeyF16
target_event:
gamepad:
button: QuickAccess

# Driver hid-msi-claw maps the M-Keys to these events with our udev rule
- name: M1
source_events:
- keyboard: KeyRightBrace
target_event:
gamepad:
button: RightPaddle1
- name: M2
source_events:
- keyboard: KeyLeftBrace
target_event:
gamepad:
button: LeftPaddle1

# List of events to filter from the source devices
filtered_events: []
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ source_devices:
- Keyboard:KeyF15
- Keyboard:KeyF16
- Keyboard:KeyG
- Keyboard:KeyLeftMeta
- Keyboard:KeyTab
- Keyboard:KeyVolumeDown
- Keyboard:KeyVolumeUp
Expand Down Expand Up @@ -140,4 +139,4 @@ target_devices:
- keyboard

# The ID of a device event mapping in the 'event_maps' folder
capability_map_id: claw1
capability_map_id: claw2
Loading