|
| 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: ONEXPLAYER G1 |
| 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: ONEXPLAYER G1 i |
| 20 | + sys_vendor: ONE-NETBOOK |
| 21 | + - dmi_data: |
| 22 | + product_name: ONEXPLAYER G1 A |
| 23 | + sys_vendor: ONE-NETBOOK |
| 24 | + |
| 25 | +# One or more source devices to combine into a single virtual device. The events |
| 26 | +# from these devices will be watched and translated according to the key map. |
| 27 | +source_devices: |
| 28 | + - group: gamepad |
| 29 | + evdev: |
| 30 | + name: Microsoft X-Box 360 pad |
| 31 | + phys_path: usb-0000:00:14.0-3/input0 |
| 32 | + handler: event* |
| 33 | + - group: keyboard |
| 34 | + evdev: |
| 35 | + name: AT Translated Set 2 keyboard |
| 36 | + phys_path: isa0060/serio0/input0 |
| 37 | + handler: event* |
| 38 | + - group: keyboard |
| 39 | + evdev: |
| 40 | + name: AMIRA-KEYBOAR USB KEYBOARD |
| 41 | + phys_path: usb-0000:00:14.0-6/input0 |
| 42 | + handler: event* |
| 43 | + |
| 44 | +# Optional configuration for the composite device |
| 45 | +options: |
| 46 | + # If true, InputPlumber will automatically try to manage the input device. If |
| 47 | + # this is false, InputPlumber will not try to manage the device unless an |
| 48 | + # external service enables management of the device. Defaults to 'false' |
| 49 | + auto_manage: true |
| 50 | + |
| 51 | +# The target input device(s) to emulate by default |
| 52 | +target_devices: |
| 53 | + - xbox-series |
| 54 | + - mouse |
| 55 | + - keyboard |
| 56 | + |
| 57 | +# The ID of a device event mapping in the 'event_maps' folder |
| 58 | +capability_map_id: oxp6 |
0 commit comments