Skip to content

Commit

Permalink
(hack) add support for DualShock 3 and DualSense
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed Mar 16, 2023
1 parent 5b706ff commit 287640a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions HandheldCompanion/Managers/ControllerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,14 @@ private static void HidDeviceArrived(PnPDetails details, DeviceEventArgs obj)
switch (VendorId)
{
// SONY
case 1356:
case 0x054C:
{
switch (ProductId)
{
// DualShock4
case 1476:
case 2508:
case 0x0268: // DualShock 3
case 0x05C4: // DualShock 4
case 0x09CC: // DualShock 4 (2nd Gen)
case 0x0CE6: // DualSense
controller = new DS4Controller(joystick, details);
break;
}
Expand Down

0 comments on commit 287640a

Please sign in to comment.