Merge pull request #2316 from loki666/odin2_mapping

sm8550/inputplumber: map back button to record
This commit is contained in:
Philippe Simons
2026-02-13 18:33:59 +01:00
committed by GitHub
2 changed files with 10 additions and 44 deletions

View File

@@ -83,6 +83,16 @@ mapping:
gamepad:
button: Select
- name: Screenshot Button
source_events:
- evdev:
event_type: KEY
event_code: BTN_BACK
value_type: button
target_event:
gamepad:
button: Screenshot
- name: Right Trigger
source_events:
- evdev:

View File

@@ -1,44 +0,0 @@
# 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: Retroid Pocket Layout
# 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:
# - udev:
# sys_path: /sys/firmware/devicetree/base
# attributes:
# - name: model
# value: Retroid Pocket 6
matches: []
# Only allow a single source device per composite device of this type.
single_source: false
# 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:
phys_path: rsinput-gamepad/input0
handler: event*
# 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-series
- mouse
- keyboard