|
| 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