Added Reverse for new rumble
This commit is contained in:
parent
7714a7ccd9
commit
2c2d4350f9
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user