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 - Playstation 5 Controller not listed as haptic enabled device.
Summary: Playstation 5 Controller not listed as haptic enabled device.
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: haptic (show other bugs)
Version: 2.0.14
Hardware: x86 Windows 10
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-22 04:05 UTC by isaboll12
Modified: 2021-01-15 13:14 UTC (History)
1 user (show)

See Also:


Attachments

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