Skip to content

Commit d3932cb

Browse files
committed
fix(input): correct KONKR Pocket FIT mappings
Consolidate the DirectInput and auxiliary capability maps as KONKR type 2 and reuse the mapping for both evdev sources. Correct the right-stick and trigger mappings, preserve the LC and RC hardware labels, and keep the auxiliary and back buttons mapped. AI disclosure: OpenAI Codex assisted with interpreting the review feedback, editing the YAML configuration, and running validation. The contributor reviewed the changes and verified all controls on a physical KONKR Pocket FIT using the Xbox Elite target.
1 parent c447225 commit d3932cb

4 files changed

Lines changed: 106 additions & 80 deletions

File tree

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v2.json
2+
version: 2
3+
kind: CapabilityMap
4+
name: KONKR Type 2
5+
id: konkr2
6+
7+
mapping:
8+
- name: Right-side Menu Button
9+
source_events:
10+
- evdev:
11+
event_type: KEY
12+
event_code: BTN7
13+
value_type: button
14+
target_event:
15+
gamepad:
16+
button: QuickAccess
17+
- name: Equals Button
18+
source_events:
19+
- evdev:
20+
event_type: KEY
21+
event_code: BTN6
22+
value_type: button
23+
target_event:
24+
gamepad:
25+
button: Keyboard
26+
- name: K Button
27+
source_events:
28+
- evdev:
29+
event_type: KEY
30+
event_code: BTN5
31+
value_type: button
32+
target_event:
33+
gamepad:
34+
button: QuickAccess2
35+
- name: LC
36+
source_events:
37+
- evdev:
38+
event_type: KEY
39+
event_code: BTN3
40+
value_type: button
41+
target_event:
42+
gamepad:
43+
button: LeftPaddle1
44+
- name: RC
45+
source_events:
46+
- evdev:
47+
event_type: KEY
48+
event_code: BTN4
49+
value_type: button
50+
target_event:
51+
gamepad:
52+
button: RightPaddle1
53+
- name: Right Trigger
54+
source_events:
55+
- evdev:
56+
event_type: ABS
57+
event_code: ABS_GAS
58+
value_type: trigger
59+
target_event:
60+
gamepad:
61+
trigger:
62+
name: RightTrigger
63+
- name: Left Trigger
64+
source_events:
65+
- evdev:
66+
event_type: ABS
67+
event_code: ABS_BRAKE
68+
value_type: trigger
69+
target_event:
70+
gamepad:
71+
trigger:
72+
name: LeftTrigger
73+
- name: Left Lower Back Button
74+
source_events:
75+
- evdev:
76+
event_type: KEY
77+
event_code: BTN_Z
78+
value_type: button
79+
target_event:
80+
gamepad:
81+
button: LeftPaddle2
82+
- name: Right Lower Back Button
83+
source_events:
84+
- evdev:
85+
event_type: KEY
86+
event_code: BTN_C
87+
value_type: button
88+
target_event:
89+
gamepad:
90+
button: RightPaddle2
91+
- name: Right Stick
92+
source_events:
93+
- evdev:
94+
event_type: ABS
95+
event_code: ABS_Z
96+
value_type: joystick_x
97+
- evdev:
98+
event_type: ABS
99+
event_code: ABS_RZ
100+
value_type: joystick_y
101+
target_event:
102+
gamepad:
103+
axis:
104+
name: RightStick

rootfs/usr/share/inputplumber/capability_maps/pocket_fit_dinput.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

rootfs/usr/share/inputplumber/capability_maps/pocket_fit_type9.yaml

Lines changed: 0 additions & 52 deletions
This file was deleted.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ matches:
1717
source_devices:
1818
# AYANEO/DInput mode
1919
- group: gamepad
20-
capability_map_id: pocket_fit_dinput
20+
capability_map_id: konkr2
2121
evdev:
2222
name: AYANEO Controller
2323
vendor_id: 4001
@@ -38,7 +38,7 @@ source_devices:
3838
handler: event*
3939
# Auxiliary buttons and the upper pair of back buttons
4040
- group: keyboard
41-
capability_map_id: pocket_fit_type9
41+
capability_map_id: konkr2
4242
evdev:
4343
name: AYANEO DEVICE
4444
vendor_id: 1c4f

0 commit comments

Comments
 (0)