| Summary: | Possible backwards compatibility impact caused by SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Cameron Gutman <cameron.gutman> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | PoC Patch implementing solution 1 | ||
|
Description
Cameron Gutman
2021-01-09 03:21:12 UTC
Created attachment 4646 [details]
PoC Patch implementing solution 1
Here is a RFC patch
I don't own a PS5 controller, so I can't test this. It at least builds though.
This was an intentional change because the 2.0.14 behavior caused PS5 controllers to no longer work with other DirectInput programs. This change puts the PS5 controller in line with how PS4 controllers behave, where they are compatible with other programs by default. SDL hints can be set in the environment so users can change the behavior if needed separately from the application being aware of them. One thing we could do is use the PS4 hint for both, if only one of the hints is set. That would ensure the same behavior for applications that enabled advanced reports for PS4 controllers. Thoughts? (In reply to Sam Lantinga from comment #2) > This was an intentional change because the 2.0.14 behavior caused PS5 > controllers to no longer work with other DirectInput programs. This change > puts the PS5 controller in line with how PS4 controllers behave, where they > are compatible with other programs by default. Yep, the change itself makes sense. > > SDL hints can be set in the environment so users can change the behavior if > needed separately from the application being aware of them. > > One thing we could do is use the PS4 hint for both, if only one of the hints > is set. That would ensure the same behavior for applications that enabled > advanced reports for PS4 controllers. > > Thoughts? That sounds like what I implemented in my PoC patch, or are you thinking of something different? Yep, something exactly like that. :) https://hg.libsdl.org/SDL/rev/d4c15ecfcf62 |