Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rootfs/usr/lib/udev/hwdb.d/60-inputplumber-autostart.hwdb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dmi:*svnAYANEO:pnAIRPro:*
# AYANEO Flip
dmi:*svnAYANEO:pnFLIPDS:*
dmi:*svnAYANEO:pnFLIP1SDS:*
dmi:*svnAYANEO:pnFLIP1SKB:*
dmi:*svnAYANEO:pnFLIPKB:*
# AYANEO Kun
dmi:*svnAYANEO:pnAYANEOKUN:*
Expand Down
88 changes: 88 additions & 0 deletions rootfs/usr/share/inputplumber/devices/50-ayaneo_flip_1s_kb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/composite_device_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CompositeDevice

# Name of the composite device mapping
name: AYANEO Flip 1S KB

# Only allow a single source device per composite device of this type.
single_source: false

# Only use this profile if *any* of the given matches matches. If this list is
# empty, then the source devices will *always* be checked.
# /sys/class/dmi/id/product_name
matches:
- dmi_data:
product_name: FLIP 1S KB
sys_vendor: AYANEO

# One or more source devices to combine into a single virtual device. The events
# from these devices will be watched and translated according to the key map.
source_devices:
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
phys_path: usb-0000:c7:00.0-1/input0
handler: event*
- group: gamepad
evdev:
name: AYANEO COMPOSITE DEVICE
phys_path: usb-0000:c7:00.0-4/input1
handler: event*
events:
exclude:
- "*"
include:
- Keyboard:KeyD
- Keyboard:KeyF18
- Keyboard:KeyF21
- Keyboard:KeyF22
- Keyboard:KeyF23
- Keyboard:KeyLeftMeta
- Keyboard:KeyVolumeDown
- Keyboard:KeyVolumeUp
- group: keyboard
evdev:
name: AT Translated Set 2 keyboard
phys_path: isa0060/serio0/input0
handler: event*
events:
exclude:
- "*"
include:
- Keyboard:KeyD
- Keyboard:KeyF18
- Keyboard:KeyF21
- Keyboard:KeyF22
- Keyboard:KeyF23
- Keyboard:KeyLeftMeta
- Keyboard:KeyVolumeDown
- Keyboard:KeyVolumeUp
- group: imu
iio:
name: bmi323-imu
config:
imu:
mount_matrix:
x: [0, -1, 0]
y: [0, 0, -1]
z: [1, 0, 0]

# Optional configuration for the composite device
options:
# If true, InputPlumber will automatically try to manage the input device. If
# this is false, InputPlumber will not try to manage the device unless an
# external service enables management of the device. Defaults to 'false'
auto_manage: true

# The target input device(s) to emulate by default
target_devices:
- xbox-elite
- mouse
- keyboard

# The ID of a device event mapping in the 'event_maps' folder
capability_map_id: aya8
Loading