Wait briefly after enabling effects on DualSense controller
The rumble motors apparently take a short time to power up after enabling enhanced mode.
Fixes https://github.com/libsdl-org/SDL/issues/13909
(cherry picked from commit 1aba421bd3)
This commit is contained in:
1 parent
b2cf5729b4
commit
d1ae1163dd
1 file changed
+3
@@ -1047,6 +1047,9 @@ static bool HIDAPI_DriverPS5_InternalSendJoystickEffect(SDL_DriverPS5_Context *c
|
|||||||
if (!ctx->enhanced_mode) {
|
if (!ctx->enhanced_mode) {
|
||||||
if (application_usage) {
|
if (application_usage) {
|
||||||
HIDAPI_DriverPS5_UpdateEnhancedModeOnApplicationUsage(ctx);
|
HIDAPI_DriverPS5_UpdateEnhancedModeOnApplicationUsage(ctx);
|
||||||
|
|
||||||
|
// Wait briefly before sending additional effects
|
||||||
|
SDL_Delay(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ctx->enhanced_mode) {
|
if (!ctx->enhanced_mode) {
|
||||||
|
|||||||
Reference in new issue
Block a user