Skip to content

Commit 01708ba

Browse files
committed
feat(Hardware Support): Add Ayaneo DS 1S Support
1 parent db59a4f commit 01708ba

File tree

2 files changed

+130
-0
lines changed

2 files changed

+130
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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: AYANEO Type 8
10+
11+
# Unique identifier of the capability mapping
12+
id: aya8
13+
14+
# List of mapped events that are activated by a specific set of activation keys.
15+
mapping:
16+
- name: LC
17+
source_events:
18+
- keyboard: KeyF21
19+
target_event:
20+
gamepad:
21+
button: LeftTop #LeftPaddle1
22+
- name: RC
23+
source_events:
24+
- keyboard: KeyF22
25+
target_event:
26+
gamepad:
27+
button: RightTop #RightPaddle1
28+
- name: Aya Space
29+
source_events:
30+
- keyboard: KeyF23
31+
target_event:
32+
gamepad:
33+
button: QuickAccess
34+
- name: Custom Right
35+
source_events:
36+
- keyboard: KeyLeftMeta
37+
- keyboard: KeyD
38+
target_event:
39+
gamepad:
40+
button: RightPaddle2
41+
- name: Custom Left
42+
source_events:
43+
- keyboard: KeyF18
44+
target_event:
45+
gamepad:
46+
button: LeftPaddle2
47+
48+
# List of events to filter from the source devices
49+
filtered_events: []
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json
2+
# Schema version number
3+
version: 1
4+
5+
# The type of configuration schema
6+
kind: CompositeDevice
7+
8+
# Name of the composite device mapping
9+
name: AYANEO Flip 1S
10+
11+
# Only allow a single source device per composite device of this type.
12+
single_source: false
13+
14+
# Only use this profile if *any* of the given matches matches. If this list is
15+
# empty, then the source devices will *always* be checked.
16+
# /sys/class/dmi/id/product_name
17+
matches:
18+
- dmi_data:
19+
product_name: FLIP 1S DS
20+
sys_vendor: AYANEO
21+
22+
# One or more source devices to combine into a single virtual device. The events
23+
# from these devices will be watched and translated according to the key map.
24+
source_devices:
25+
- group: gamepad
26+
evdev:
27+
name: Microsoft X-Box 360 pad
28+
phys_path: usb-0000:c7:00.0-1/input0
29+
handler: event*
30+
- group: gamepad
31+
evdev:
32+
name: AYANEO COMPOSITE DEVICE
33+
phys_path: usb-0000:c7:00.0-4/input1
34+
handler: event*
35+
- group: keyboard
36+
evdev:
37+
name: AT Translated Set 2 keyboard
38+
phys_path: isa0060/serio0/input0
39+
handler: event*
40+
- group: imu
41+
iio:
42+
name: bmi323-imu
43+
#mount_matrix:
44+
# x: [0, -1, 0]
45+
# y: [-1, 0, 0]
46+
# z: [0, 0, -1]
47+
- group: touchscreen
48+
udev:
49+
properties:
50+
- name: ID_INPUT_TOUCHSCREEN
51+
value: "1"
52+
attributes:
53+
- name: id/vendor
54+
value: "0416"
55+
- name: id/product
56+
value: "1001"
57+
sys_name: "event*"
58+
subsystem: input
59+
config:
60+
touchscreen:
61+
orientation: "normal"
62+
override_source_size: true
63+
width: 1200
64+
height: 1920
65+
66+
# Optional configuration for the composite device
67+
options:
68+
# If true, InputPlumber will automatically try to manage the input device. If
69+
# this is false, InputPlumber will not try to manage the device unless an
70+
# external service enables management of the device. Defaults to 'false'
71+
auto_manage: true
72+
73+
# The target input device(s) to emulate by default
74+
target_devices:
75+
- xbox-elite
76+
- mouse
77+
- keyboard
78+
- touchscreen
79+
80+
# The ID of a device event mapping in the 'event_maps' folder
81+
capability_map_id: aya8

0 commit comments

Comments
 (0)