Fix Emscripten joystick rumble being swapped

This commit is contained in:
Nintorch
2025-12-24 18:28:42 +05:00
committed by Sam Lantinga
parent bd29d60d3c
commit 0f1a705fda

View File

@@ -583,8 +583,8 @@ static bool EMSCRIPTEN_JoystickRumble(SDL_Joystick *joystick, Uint16 low_frequen
gamepad['vibrationActuator']['playEffect']('dual-rumble', {
'startDelay': 0,
'duration': 3000,
'weakMagnitude': $1 / 0xFFFF,
'strongMagnitude': $2 / 0xFFFF,
'weakMagnitude': $2 / 0xFFFF,
'strongMagnitude': $1 / 0xFFFF,
});
return 1;
}, item->index, low_frequency_rumble, high_frequency_rumble);