1
0
mirror of synced 2025-01-31 11:53:54 +01:00

Add fix for Device 2 aswell

This commit is contained in:
Aaron M 2019-11-02 01:51:10 +13:00
parent 99b0a681b7
commit 9bbdcc353e

View File

@ -1611,11 +1611,19 @@ void TriggerRumbleEffectDevice2(double lowfrequency, double highfrequency, doubl
if (ReverseRumble == 1)
{
SDL_JoystickRumble(GameController2, HighMotor, LowMotor, length);
int ReverseRumble2 = SDL_JoystickRumble(GameController2, HighMotor, LowMotor, length);
if (ReverseRumble2 == -1)
{
EnableRumble = 0;
}
}
else
{
SDL_JoystickRumble(GameController2, LowMotor, HighMotor, length);
int Rumble2 = SDL_JoystickRumble(GameController2, LowMotor, HighMotor, length);
if (Rumble2 == -1)
{
EnableRumble = 0;
}
}
}
}