mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 15:15:40 +00:00
Change the duration of constant force effect in SDL2 to correct daytona games
This commit is contained in:
parent
d70a79a127
commit
7d2b21a6dc
|
@ -511,9 +511,9 @@ bool CSDLInputSystem::ProcessForceFeedbackCmd(int joyNum, int axisNum, ForceFeed
|
|||
if (ffCmd.force == 0.0f)
|
||||
StopConstanteforce(joyNum);
|
||||
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)
|
||||
ConstantForceEffect(-ffCmd.force * (float)(sdlConstForceMax / 100.0f), 1, 100, joyNum);
|
||||
ConstantForceEffect(-ffCmd.force * (float)(sdlConstForceMax / 100.0f), 1, SDL_HAPTIC_INFINITY, joyNum);
|
||||
break;
|
||||
|
||||
case FFSelfCenter:
|
||||
|
|
Loading…
Reference in a new issue