Skip to content

Commit d3991a8

Browse files
honjowShadowApex
authored andcommitted
feat(GPD Menu): add new capability map for GPD Menu and link to GPD Win5 device
1 parent 77ddd86 commit d3991a8

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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: GPD Menu
10+
11+
# Unique identifier of the capability mapping
12+
id: gpd_menu
13+
14+
# List of mapped events that are activated by a specific set of activation keys.
15+
mapping:
16+
- name: Menu Button
17+
source_events:
18+
- evdev:
19+
event_type: KEY
20+
event_code: BTN_MODE
21+
value_type: button
22+
target_event:
23+
gamepad:
24+
button: Screenshot

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v2.json
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v1.json
22
# Schema version number
33
version: 1
44

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ source_devices:
2727
name: "Microsoft X-Box 360 pad"
2828
phys_path: usb-0000:66:00.0-5.1/input0
2929
handler: event*
30+
capability_map_id: gpd_menu
3031
- group: keyboard
3132
evdev:
3233
name: " Mouse for Windows"

0 commit comments

Comments
 (0)