Merge pull request #57 from scj643/dualsense-edge

Add DualSense Edge support
This commit is contained in:
Flo
2024-08-10 11:09:48 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,10 @@
# PS5 DualSense controller over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ce6", MODE="0660", TAG+="uaccess"
# PS5 DualSense Edge controller over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0df2", MODE="0660", TAG+="uaccess"
# PS5 DualSense controller over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:0CE6*", MODE="0660", TAG+="uaccess"
# PS5 DualSense Edge controller over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:0DF2*", MODE="0660", TAG+="uaccess"

View File

@@ -177,7 +177,7 @@ class pydualsense:
detected_device: hidapi.Device = None
devices = hidapi.enumerate(vendor_id=0x054C)
for device in devices:
if device.vendor_id == 0x054C and device.product_id == 0x0CE6:
if device.vendor_id == 0x054C and device.product_id in (0x0CE6, 0x0DF2):
detected_device = device
if detected_device is None: