Change the duration of constant force effect in SDL2 to correct daytona games

This commit is contained in:
SpinDizzy 2020-12-01 07:35:52 +00:00
parent d70a79a127
commit 7d2b21a6dc

View file

@ -511,9 +511,9 @@ bool CSDLInputSystem::ProcessForceFeedbackCmd(int joyNum, int axisNum, ForceFeed
if (ffCmd.force == 0.0f) if (ffCmd.force == 0.0f)
StopConstanteforce(joyNum); StopConstanteforce(joyNum);
else if (ffCmd.force > 0.0f) else if (ffCmd.force > 0.0f)
ConstantForceEffect(ffCmd.force * (float)(sdlConstForceMax / 100.0f), -1, 100, joyNum); ConstantForceEffect(ffCmd.force * (float)(sdlConstForceMax / 100.0f), -1, SDL_HAPTIC_INFINITY, joyNum);
else if (ffCmd.force < 0.0f) else if (ffCmd.force < 0.0f)
ConstantForceEffect(-ffCmd.force * (float)(sdlConstForceMax / 100.0f), 1, 100, joyNum); ConstantForceEffect(-ffCmd.force * (float)(sdlConstForceMax / 100.0f), 1, SDL_HAPTIC_INFINITY, joyNum);
break; break;
case FFSelfCenter: case FFSelfCenter: