Skip to content

Commit c1feee7

Browse files
committed
feat(Hardware Support): Add OneXPlayer G1
1 parent 0da7c97 commit c1feee7

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ dmi:*svnONE-NETBOOK:pnONEXPLAYERF1Pro:*
9090
dmi:*svnONE-NETBOOK:pnONEXPLAYERX1A:*
9191
dmi:*svnONE-NETBOOK:pnONEXPLAYERX1i:*
9292
dmi:*svnONE-NETBOOK:pnONEXPLAYERX1mini:*
93+
# OneXPlayer G1
94+
dmi:*svnONE-NETBOOK:*pnONEXPLAYERG1A:*
95+
dmi:*svnONE-NETBOOK:*pnONEXPLAYERG1i:*
9396
# OrangePi Neo
9497
dmi:*svnOrangePi:pnNEO-01:*
9598
# Zotac Zone
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 6
10+
11+
# Unique identifier of the capability mapping
12+
id: oxp6
13+
14+
# List of mapped events that are activated by a specific set of activation keys.
15+
mapping:
16+
- name: Home Short Press
17+
source_events:
18+
- keyboard: KeyLeftMeta
19+
- keyboard: KeyD
20+
target_event:
21+
gamepad:
22+
button: Guide
23+
- name: Home Long Press
24+
source_events:
25+
- keyboard: KeyLeftMeta
26+
- keyboard: KeyG
27+
target_event:
28+
gamepad:
29+
button: QuickAccess2
30+
- name: Turbo
31+
source_events:
32+
- keyboard: KeyRightCtrl
33+
- keyboard: KeyLeftMeta
34+
- keyboard: KeyLeftAlt
35+
target_event:
36+
gamepad:
37+
button: QuickAccess
38+
39+
# List of events to filter from the source devices
40+
filtered_events: []
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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

Comments
 (0)