Skip to content

Commit e7202c0

Browse files
committed
fix(Hardware): Update F1 series config
- Unify F1 and F1 Pro into single config. - Add missing F1 models. - Add serial tty HID device to config. - Adjust capability map to add right paddle support if the tty is not used.
1 parent d586d40 commit e7202c0

File tree

4 files changed

+94
-54
lines changed

4 files changed

+94
-54
lines changed

rootfs/usr/lib/udev/hwdb.d/60-inputplumber-autostart.hwdb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ dmi:*svnONE-NETBOOK:pnONEXPLAYERminiA07:*
9191
dmi:*svnONE-NETBOOK:pnONEXPLAYERMiniPro:*
9292
# OneXPlayer OneXFly
9393
dmi:*svnONE-NETBOOK:pnONEXPLAYERF1:*
94+
dmi:*svnONE-NETBOOK:pnONEXPLAYERF1EVA-01:*
95+
dmi:*svnONE-NETBOOK:pnONEXPLAYERF1OLED:*
9496
dmi:*svnONE-NETBOOK:pnONEXPLAYERF1Pro:*
9597
# OneXPlayer X1
9698
dmi:*svnONE-NETBOOK:pnONEXPLAYERX1A:*
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/ShadowBlip/InputPlumber/main/rootfs/usr/share/inputplumber/schema/capability_map_v1.json
2+
# Schema version number
3+
version: 1
4+
5+
# The type of configuration schema
6+
kind: CapabilityMap
7+
8+
# Name for the device event map
9+
name: OneXPlayer Type 7
10+
11+
# Unique identifier of the capability mapping
12+
id: oxp7
13+
14+
# List of mapped events that are activated by a specific set of activation keys.
15+
mapping:
16+
- name: Turbo
17+
source_events:
18+
- keyboard: KeyLeftCtrl
19+
- keyboard: KeyLeftAlt
20+
- keyboard: KeyLeftMeta
21+
target_event:
22+
gamepad:
23+
button: QuickAccess
24+
- name: KB (Short Press)
25+
source_events:
26+
- keyboard: KeyRightCtrl
27+
- keyboard: KeyLeftMeta
28+
- keyboard: KeyO
29+
target_event:
30+
gamepad:
31+
button: Keyboard
32+
- name: Orange Button (Short Press)
33+
source_events:
34+
- keyboard: KeyLeftMeta
35+
- keyboard: KeyD
36+
target_event:
37+
gamepad:
38+
button: Guide
39+
- name: Orange Button (Long Press)
40+
source_events:
41+
- keyboard: KeyLeftMeta
42+
- keyboard: KeyG
43+
target_event:
44+
gamepad:
45+
button: QuickAccess2
46+
- name: Turbo + Orange Button
47+
source_events:
48+
- keyboard: KeyLeftMeta
49+
- keyboard: KeySysrq
50+
target_event:
51+
gamepad:
52+
button: Screenshot
53+
- name: KB + Orange Button
54+
source_events:
55+
- keyboard: KeyRightCtrl
56+
- keyboard: KeyRightAlt
57+
- keyboard: KeyDelete
58+
target_event:
59+
keyboard: KeyF13
60+
- name: M2
61+
source_events:
62+
- gamepad:
63+
button: Guide
64+
target_event:
65+
gamepad:
66+
button: RightPaddle1
67+
68+
# List of events to filter from the source devices
69+
filtered_events: []

rootfs/usr/share/inputplumber/devices/50-onexplayer_onexfly.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ matches:
1818
- dmi_data:
1919
product_name: ONEXPLAYER F1
2020
sys_vendor: ONE-NETBOOK
21+
- dmi_data:
22+
product_name: ONEXPLAYER F1 EVA-01
23+
sys_vendor: ONE-NETBOOK
24+
- dmi_data:
25+
product_name: ONEXPLAYER F1 OLED
26+
sys_vendor: ONE-NETBOOK
27+
- dmi_data:
28+
product_name: ONEXPLAYER F1Pro
29+
sys_vendor: ONE-NETBOOK
2130

2231
# One or more source devices to combine into a single virtual device. The events
2332
# from these devices will be watched and translated according to the key map.
@@ -27,11 +36,24 @@ source_devices:
2736
name: Microsoft X-Box 360 pad
2837
phys_path: usb-0000:c4:00.3-4/input0
2938
handler: event*
39+
- group: gamepad
40+
evdev:
41+
name: Microsoft X-Box 360 pad
42+
phys_path: usb-0000:c7:00.0-4/input0
43+
handler: event*
3044
- group: keyboard
3145
evdev:
3246
name: AT Translated Set 2 keyboard
3347
phys_path: isa0060/serio0/input0
3448
handler: event*
49+
- group: gamepad
50+
udev:
51+
attributes:
52+
- name: port
53+
value: "0x3E8"
54+
sys_name: "ttyS*"
55+
subsystem: tty
56+
3557
- group: imu
3658
iio:
3759
name: i2c-BMI0160:00
@@ -50,4 +72,4 @@ target_devices:
5072
- keyboard
5173

5274
# The ID of a device event mapping in the 'event_maps' folder
53-
capability_map_id: oxp3
75+
capability_map_id: oxp7

rootfs/usr/share/inputplumber/devices/50-onexplayer_onexfly_pro.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)