-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL_GameControllerHasRumbleTriggers reports false for a PS5 controller #5372
Comments
Have you tried the following hint?
I've found because HIDAPI is enabled by default, but extended inputs are disabled by default, means PS rumble won't work without this hint. |
Yes, I'm using these hints:
I've also tried it with just
in case any conflicts between the hints are possible. |
Could also play around with
Are you able to test the PS5 touchpad, sensors, and LED? Might give some hint to what's going on. All else I can tell you is that I have a Chinese pretend PS4 and it kind of works (apart from LED), but only if wired. |
PS5 controllers don't actually have trigger rumble the way it's defined in SDL. They instead have advanced haptic actuators that don't (at least at the original firmware release) provide indefinite trigger vibration. |
Games like Deathloop use an SDK provided by Sony that allows setting pressure thresholds and trigger effects. You can do this yourself by using the code in testgamecontroller.c (look for CyclePS5TriggerEffect), but calling SDL_GameControllerRumbleTriggers() won't have any effect. |
Thanks for the clarification. The SDL documentation on these methods is extremely confusing https://wiki.libsdl.org/SDL_GameControllerRumbleTriggers It says: "Note that this is rumbling of the triggers and not the game controller as a whole. The first controller to offer this feature was the PlayStation 5's DualShock 5." This implies it only works with DualShock 5. While if I understand your response correctly, it works only with Xbox One style controllers. |
Yes, the documentation was incorrect. I've fixed it, thanks! |
I am having this issue with an xbox one S controller :/ |
I've had an Xbox style controller report true from Are you using it wired or wireless? A lot of these advanced haptic features are disabled in wireless mode, I assume due to power consumption. |
wired and wireless, and it worked on my windows pc (in forza horizon 5) |
I'm using SDL 2.0.18, Windows 10, PS5 controller connected through USB, and this code to test the rumble triggers:
Which prints:
The rumble triggers work fine in games, e. g. Deathloop, so it's unlikely it's an issue with my controller or setup.
The text was updated successfully, but these errors were encountered: