Skip to content

Commit b7de5c3

Browse files
committed
fix(Hardware Support): Fix Claw 8 EX Config
The Claw 8 EX has enough variation to warrant its own capability map. This improves detection of the guide button dramatically compared to the previous config.
1 parent 31915d5 commit b7de5c3

2 files changed

Lines changed: 53 additions & 2 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v1.json
2+
# Schema version number
3+
version: 1
4+
5+
# The type of configuration schema
6+
kind: CapabilityMap
7+
8+
# Name for the device event map
9+
name: MSI Claw Type 2
10+
11+
# Unique identifier of the capability mapping
12+
id: claw2
13+
14+
# List of mapped events that are activated by a specific set of activation keys.
15+
mapping:
16+
- name: Guide (Short)
17+
source_events:
18+
- keyboard: KeyF15
19+
- keyboard: KeyG
20+
target_event:
21+
gamepad:
22+
button: Guide
23+
- name: Guide (Long)
24+
source_events:
25+
- keyboard: KeyF15
26+
- keyboard: KeyTab
27+
target_event:
28+
gamepad:
29+
button: Guide
30+
- name: QuickAccess
31+
source_events:
32+
- keyboard: KeyF16
33+
target_event:
34+
gamepad:
35+
button: QuickAccess
36+
37+
# Driver hid-msi-claw maps the M-Keys to these events with our udev rule
38+
- name: M1
39+
source_events:
40+
- keyboard: KeyRightBrace
41+
target_event:
42+
gamepad:
43+
button: RightPaddle1
44+
- name: M2
45+
source_events:
46+
- keyboard: KeyLeftBrace
47+
target_event:
48+
gamepad:
49+
button: LeftPaddle1
50+
51+
# List of events to filter from the source devices
52+
filtered_events: []

rootfs/usr/share/inputplumber/devices/50-msi_claw8_ex_ai_cg3em.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ source_devices:
3737
- Keyboard:KeyF15
3838
- Keyboard:KeyF16
3939
- Keyboard:KeyG
40-
- Keyboard:KeyLeftMeta
4140
- Keyboard:KeyTab
4241
- Keyboard:KeyVolumeDown
4342
- Keyboard:KeyVolumeUp
@@ -146,4 +145,4 @@ target_devices:
146145
- keyboard
147146

148147
# The ID of a device event mapping in the 'event_maps' folder
149-
capability_map_id: claw1
148+
capability_map_id: claw2

0 commit comments

Comments
 (0)