mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 02:07:49 +00:00
Fix Emscripten joystick rumble being swapped
This commit is contained in:
parent
bd29d60d3c
commit
0f1a705fda
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue