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 - [Patch] Specific DualShock 3 mapping on Linux has digital triggers
Summary: [Patch] Specific DualShock 3 mapping on Linux has digital triggers
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.9
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-14 20:06 UTC by Adrian
Modified: 2019-03-17 01:49 UTC (History)
0 users

See Also:


Attachments
Patch for DualShock 3 mapping (2.65 KB, text/plain)
2019-02-14 20:06 UTC, Adrian
Details

Note You need to log in before you can comment on or make changes to this bug.
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