1
0
mirror of synced 2024-11-24 06:50:11 +01:00

Added Reverse for new rumble

This commit is contained in:
Aaron M 2019-10-30 18:24:36 +13:00
parent 7714a7ccd9
commit 2c2d4350f9

View File

@ -1578,7 +1578,14 @@ void TriggerRumbleEffect(double lowfrequency, double highfrequency, double lengt
DWORD LowMotor = (DWORD)(lowfrequency * rangeLow + minForceLow);
DWORD HighMotor = (DWORD)(highfrequency * rangeHigh + minForceHigh);
SDL_JoystickRumble(GameController, LowMotor, HighMotor, length);
if (ReverseRumble == 1)
{
SDL_JoystickRumble(GameController, HighMotor, LowMotor, length);
}
else
{
SDL_JoystickRumble(GameController, LowMotor, HighMotor, length);
}
}
}