Added Reverse for new rumble
This commit is contained in:
parent
7714a7ccd9
commit
2c2d4350f9
@ -1578,9 +1578,16 @@ void TriggerRumbleEffect(double lowfrequency, double highfrequency, double lengt
|
|||||||
DWORD LowMotor = (DWORD)(lowfrequency * rangeLow + minForceLow);
|
DWORD LowMotor = (DWORD)(lowfrequency * rangeLow + minForceLow);
|
||||||
DWORD HighMotor = (DWORD)(highfrequency * rangeHigh + minForceHigh);
|
DWORD HighMotor = (DWORD)(highfrequency * rangeHigh + minForceHigh);
|
||||||
|
|
||||||
|
if (ReverseRumble == 1)
|
||||||
|
{
|
||||||
|
SDL_JoystickRumble(GameController, HighMotor, LowMotor, length);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
SDL_JoystickRumble(GameController, LowMotor, HighMotor, length);
|
SDL_JoystickRumble(GameController, LowMotor, HighMotor, length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void TriggerSpringEffect(double strength)
|
void TriggerSpringEffect(double strength)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user