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 5409

Summary: Playstation 5 Controller not listed as haptic enabled device.
Product: SDL Reporter: isaboll12
Component: hapticAssignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: dimitriy.ryazantcev
Version: 2.0.14   
Hardware: x86   
OS: Windows 10   

Description isaboll12 2020-12-22 04:05:32 UTC
The PS5 Controller is not found as a haptic supported device when using the "testrumble" SDL test application.

Additionally, when using the haptic subsystem to open a haptic device with the PS5 controller, the Haptic device created appears to be NULL, however controller haptic works using the Gamepad API "SDL_GameControllerRumble" function. This impacts haptic support for older applications that use the haptic api for controller haptics, where replacing the DLL doesn't bring the functionality (unlike previous versions).
Comment 1 Dimitriy Ryazantcev 2021-01-15 13:14:51 UTC
You can use https://wiki.libsdl.org/CategoryGameController API and its SDL_GameControllerRumble() for PS4/PS5 controllers