Skip to content
Open
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
44 changes: 44 additions & 0 deletions rootfs/usr/share/inputplumber/devices/60-8bit_do_ultimate_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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: 8BitDo Ultimate 2

# 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: []

# Only allow a single source device per composite device of this type.
single_source: false

# Maximum number of source devices per CompositeDevice.
maximum_sources: 2

# 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.
# Only grabs dinput, xinput is handled by 65-generic-gamepad.yaml
source_devices:
- group: gamepad
blocked: true
evdev:
name: "{8BitDo Ultimate 2 Wireless,8BitDo Ultimate 2 Wireless Controller,8BitDo 8BitDo Ultimate 2 Wireless Controller for PC}"
vendor_id: "2dc8"
product_id: "6012"
capability_map_id: dinput_generic

- group: gamepad
hidraw:
vendor_id: 0x2dc8
product_id: 0x6012
interface_num: 0

# The target input device(s) to emulate by default
target_devices:
- 8bitdo-u2
- mouse
- keyboard
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"$ref": "#/definitions/Options"
},
"target_devices": {
"description": "Target input device(s) to emulate by default. Can be one of ['mouse', 'keyboard', 'gamepad', 'xb360', 'xbox-elite', 'xbox-series', 'deck', 'ds5', 'ds5-edge', 'touchscreen', 'touchpad'].",
"description": "Target input device(s) to emulate by default. Can be one of ['mouse', 'keyboard', 'gamepad', 'xb360', 'xbox-elite', 'xbox-series', 'deck', 'ds5', 'ds5-edge', 'touchscreen', 'touchpad', '8bitdo-u2'].",
"type": "array",
"items": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/lego/hid_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ impl ReportType {

#[derive(PrimitiveEnum_u8, Clone, Copy, PartialEq, Debug, Default)]
pub enum DPadDirection {
#[default]
Up = 0,
UpRight = 1,
Right = 2,
Expand All @@ -34,6 +33,7 @@ pub enum DPadDirection {
DownLeft = 5,
Left = 6,
UpLeft = 7,
#[default]
None = 8,
}

Expand Down
2 changes: 1 addition & 1 deletion src/drivers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub mod oxp_hid;
pub mod oxp_tty;
pub mod rog_ally;
pub mod steam_deck;
pub mod ultimate2_wireless;
pub mod ultimate_2;
pub mod unified_gamepad;
pub mod xpad_uhid;
pub mod zotac_zone;
3 changes: 0 additions & 3 deletions src/drivers/ultimate2_wireless/mod.rs

This file was deleted.

Loading
Loading