File tree Expand file tree Collapse file tree 2 files changed +129
-2
lines changed
rootfs/usr/share/inputplumber Expand file tree Collapse file tree 2 files changed +129
-2
lines changed Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v2.json
2+ # Schema version number
3+ version : 2
4+
5+ # The type of configuration schema
6+ kind : CapabilityMap
7+
8+ # Name for the device event map
9+ name : Ally Type 2
10+
11+ # Unique identifier of the capability mapping
12+ id : aly2
13+
14+ # List of mapped events that are activated by a specific set of activation keys.
15+ mapping :
16+ - name : Start
17+ source_events :
18+ - evdev :
19+ event_type : KEY
20+ event_code : BTN_TR
21+ value_type : button
22+ target_event :
23+ gamepad :
24+ button : Start
25+
26+ - name : Select
27+ source_events :
28+ - evdev :
29+ event_type : KEY
30+ event_code : BTN_TL
31+ value_type : button
32+ target_event :
33+ gamepad :
34+ button : Select
35+
36+ - name : X button
37+ source_events :
38+ - evdev :
39+ event_type : KEY
40+ event_code : BTN_C
41+ value_type : button
42+ target_event :
43+ gamepad :
44+ button : North
45+
46+ - name : Y button
47+ source_events :
48+ - evdev :
49+ event_type : KEY
50+ event_code : BTN_NORTH
51+ value_type : button
52+ target_event :
53+ gamepad :
54+ button : West
55+
56+ - name : LB button
57+ source_events :
58+ - evdev :
59+ event_type : KEY
60+ event_code : BTN_WEST
61+ value_type : button
62+ target_event :
63+ gamepad :
64+ button : LeftBumper
65+
66+ - name : RB button
67+ source_events :
68+ - evdev :
69+ event_type : KEY
70+ event_code : BTN_Z
71+ value_type : button
72+ target_event :
73+ gamepad :
74+ button : RightBumper
75+
76+ - name : Left Stick Click
77+ source_events :
78+ - evdev :
79+ event_type : KEY
80+ event_code : BTN_TL2
81+ value_type : button
82+ target_event :
83+ gamepad :
84+ button : LeftStick
85+
86+ - name : Right Stick Click
87+ source_events :
88+ - evdev :
89+ event_type : KEY
90+ event_code : BTN_TR2
91+ value_type : button
92+ target_event :
93+ gamepad :
94+ button : RightStick
95+
96+ - name : Left Trigger
97+ source_events :
98+ - evdev :
99+ event_type : ABS
100+ event_code : ABS_Z
101+ value_type : trigger
102+ target_event :
103+ gamepad :
104+ trigger :
105+ name : LeftTrigger
106+
107+ - name : Right Trigger
108+ source_events :
109+ - evdev :
110+ event_type : ABS
111+ event_code : ABS_RZ
112+ value_type : trigger
113+ target_event :
114+ gamepad :
115+ trigger :
116+ name : RightTrigger
Original file line number Diff line number Diff line change @@ -38,6 +38,19 @@ source_devices:
3838 vendor_id : 0b05
3939 product_id : 1b4c
4040 handler : event*
41+ - group : gamepad # Gamepad in dinput mode without `asus_ally_hid` driver
42+ udev :
43+ attributes :
44+ - name : name
45+ value : " Asus Keyboard"
46+ - name : " id/product"
47+ value : " 1b4c"
48+ properties :
49+ - name : ID_INPUT_JOYSTICK
50+ value : " 1"
51+ subsystem : input
52+ sys_name : event*
53+ capability_map_id : aly2
4154 - group : keyboard
4255 unique : false
4356 evdev :
@@ -70,8 +83,6 @@ source_devices:
7083 x : [1, 0, 0]
7184 y : [0, -1, 0]
7285 z : [0, 0, -1]
73-
74- # RGB
7586 - group : led
7687 udev :
7788 sys_name : ally:rgb:joystick_rings
You can’t perform that action at this time.
0 commit comments