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 4504

Summary: [Patch] Specific DualShock 3 mapping on Linux has digital triggers
Product: SDL Reporter: Adrian <zdanio95>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.9   
Hardware: x86   
OS: Linux   
Attachments: Patch for DualShock 3 mapping

Description Adrian 2019-02-14 20:06:13 UTC
Created attachment 3616 [details]
Patch for DualShock 3 mapping

SDL2 seems to include a multitude of hardcoded mappings, including plenty of mappings for PlayStation 3 controller. Some of them have analog triggers (as axes), some don't.

I own two different, legimate DualShock 3 controllers (one comes from a Fat PS3 era, the other came with a PS3 Super Slim), and according to Steam Link on Raspberry Pi, they both share a GUID. This GUID is included with SDL2, albeit unfortunately with digital triggers.

I am attaching a patch correcting this, making triggers for this GUID pressure sensitive.
Comment 1 Sam Lantinga 2019-03-17 01:49:50 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/3d2042ac4ab9