Current Dualsense support

Hi all. I have a question about the current support of the Dualsense (playstation 5) controller.

I noticed the PS5 driver currently reports no support for Joystick LED, in spite of having a working implementation for setting the LED. I tried changing the reporting to true, and it works.

There already is a function for “rumble triggers” (which is the xbox one feature) but there is no implementation to control the adaptive triggers from there.

The mic light has an implementation but is unused.

Is there any dev branch or fork that is working on these mssing features at the moment? I might even be able to contribute, since I am doing development for JoyShockMapper and wish to use those features through SDL2 as much as possible.

AFAIK features you mentioned are not implemented. Contributions are welcomed.

Welp, I created my own fork to start working on some of this stuff.

How do I go about with negotiating the interface of the library?

I want to expand on the existing GameControllerTriggerRumble( ) system in place to add other trigger effects, rumble being on of them. And I would like to have all the parameters passed through a structure filled by the caller so that the structure can be expanded as needed without changing the signature of the interface.

Can I change the name of the existing function to TriggerEffect instead of TriggerRumble? Or should I create a parallel system? Or should I get TriggerRumble to call my own TriggerEffect under the hood?

I fixed the PS5 reporting LED support, thanks!

If you want a generic interface for PS5 trigger support, you probably want a way for the application to submit a full effects block and have the driver update it with the internal state as needed. I haven’t done that because it would probably be more useful for game developers to have a more descriptive way to identify trigger effects and parameters, but I’m not sure what that should look like yet.

1 Like

Hi @slouken, thanks for your answer. I’ve refined my fork quite a bit and documented my interface. Would you like to comment on my design (maybe I should create a pull request?). I’ll try to find default values for trigger rumble on the dualsense.

I created a PR #4393