Skip to content

Commit

Permalink
fix(ps4): add profile for limited ps4 support and xbox 360 product
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex authored and pastaq committed Jun 15, 2024
1 parent 5b828d3 commit b43758c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions rootfs/usr/share/inputplumber/devices/60-ps4_gamepad.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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: Sony Interactive Entertainment Wireless Controller

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

source_devices:
# Read events from the evdev device
- group: gamepad
evdev:
name: Sony Interactive Entertainment Wireless Controller
vendor_id: 054c
product_id: 09cc

# Block the hidraw device to prevent SDL usage of the device
- group: gamepad
blocked: true
unique: false
hidraw:
vendor_id: 0x054c
product_id: 0x09cc
interface_num: 3

# The target input device(s) that the virtual device profile can use
target_devices:
- ds5-edge
- mouse
- keyboard
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ source_devices:
- group: gamepad
evdev:
vendor_id: "045e"
product_id: "{028e,028f}"
product_id: "{028e,028f,02a1}"

- group: gamepad
evdev:
Expand Down

0 comments on commit b43758c

Please sign in to comment.