Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v1.json
# Schema version number
version: 1

# The type of configuration schema
kind: CapabilityMap

# Name for the device event map
name: OneXPlayer Type 7

# Unique identifier of the capability mapping
id: oxp7

# List of mapped events that are activated by a specific set of activation keys.
mapping:
- name: Turbo
source_events:
- keyboard: KeyLeftCtrl
- keyboard: KeyLeftAlt
- keyboard: KeyLeftMeta
target_event:
gamepad:
button: QuickAccess
- name: KB (Short Press)
source_events:
- keyboard: KeyRightCtrl
- keyboard: KeyLeftMeta
- keyboard: KeyO
target_event:
gamepad:
button: Keyboard
- name: Orange Button (Short Press)
source_events:
- keyboard: KeyLeftMeta
- keyboard: KeyD
target_event:
gamepad:
button: Guide
- name: Orange Button (Long Press)
source_events:
- keyboard: KeyLeftMeta
- keyboard: KeyG
target_event:
gamepad:
button: QuickAccess2
- name: Turbo + Orange Button
source_events:
- keyboard: KeyLeftMeta
- keyboard: KeySysrq
target_event:
gamepad:
button: Screenshot
- name: KB + Orange Button
source_events:
- keyboard: KeyRightCtrl
- keyboard: KeyRightAlt
- keyboard: KeyDelete
target_event:
keyboard: KeyF13
- name: M2
source_events:
- gamepad:
button: Guide
target_event:
gamepad:
button: RightPaddle1

# List of events to filter from the source devices
filtered_events: []
16 changes: 15 additions & 1 deletion rootfs/usr/share/inputplumber/devices/50-onexplayer_onexfly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ matches:
- dmi_data:
product_name: ONEXPLAYER F1
sys_vendor: ONE-NETBOOK
- dmi_data:
product_name: ONEXPLAYER F1 EVA-01
sys_vendor: ONE-NETBOOK
- dmi_data:
product_name: ONEXPLAYER F1 OLED
sys_vendor: ONE-NETBOOK
- dmi_data:
product_name: ONEXPLAYER F1Pro
sys_vendor: ONE-NETBOOK

# 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.
Expand All @@ -27,6 +36,11 @@ source_devices:
name: Microsoft X-Box 360 pad
phys_path: usb-0000:c4:00.3-4/input0
handler: event*
- group: gamepad
evdev:
name: Microsoft X-Box 360 pad
phys_path: usb-0000:c7:00.0-4/input0
handler: event*
- group: keyboard
evdev:
name: AT Translated Set 2 keyboard
Expand All @@ -50,4 +64,4 @@ target_devices:
- keyboard

# The ID of a device event mapping in the 'event_maps' folder
capability_map_id: oxp3
capability_map_id: oxp7

This file was deleted.

Loading