We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4060

Summary: [Patch] Alternative DualShock 4 v2 controller GUID
Product: SDL Reporter: ayer.3d
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   
Attachments: Patch to add an alternative DS4 v2 controller GUID

Description ayer.3d 2018-01-21 22:56:53 UTC
Created attachment 3150 [details]
Patch to add an alternative DS4 v2 controller GUID

I have a DualShock 4 v2 controller with a GUID that's not in the database. There is an existing GUID that is almost identical, with the only difference that I can tell being the reported version string (mine being 8001, database is 8100).

Existing GUID: 050000004c050000cc09000000810000
     New GUID: 050000004c050000cc09000001800000

When connected via USB, the GUID matches an existing entry: 030000004c050000cc09000011810000

This patch simply adds a duplicate button configuration for the new GUID, as the button mappings are identical.

The only other oddity I've noticed is that the controller is reported as "Wireless Controller" over bluetooth, and "Sony Interactive Entertainment Wireless Controller" on USB. Has nothing to do with SDL, just an observation.
Comment 1 Sam Lantinga 2018-02-07 22:07:47 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/8d97fd557ba1