1
0
mirror of synced 2024-11-28 00:20:52 +01:00

Change Amount Values for certain mame

This commit is contained in:
Aaron M 2021-04-19 21:55:43 +12:00
parent 06d837af24
commit 6156e45d98

View File

@ -2913,14 +2913,14 @@ void MAMESupermodel::FFBLoop(EffectConstants* constants, Helpers* helpers, Effec
if ((stateFFB > 0x80) && (stateFFB < 0x100)) if ((stateFFB > 0x80) && (stateFFB < 0x100))
{ {
double percentForce = (256 - stateFFB) / 127.0; double percentForce = (256 - stateFFB) / 126.0;
double percentLength = 100; double percentLength = 100;
triggers->Rumble(0, percentForce, percentLength); triggers->Rumble(0, percentForce, percentLength);
triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce); triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce);
} }
else if ((stateFFB > 0x00) && (stateFFB < 0x80)) else if ((stateFFB > 0x00) && (stateFFB < 0x80))
{ {
double percentForce = (stateFFB) / 127.0; double percentForce = (stateFFB) / 126.0;
double percentLength = 100; double percentLength = 100;
triggers->Rumble(percentForce, 0, percentLength); triggers->Rumble(percentForce, 0, percentLength);
triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce); triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce);
@ -2940,14 +2940,14 @@ void MAMESupermodel::FFBLoop(EffectConstants* constants, Helpers* helpers, Effec
if ((stateFFB > 0x80) && (stateFFB < 0x100)) if ((stateFFB > 0x80) && (stateFFB < 0x100))
{ {
double percentForce = (256 - stateFFB) / 127.0; double percentForce = (256 - stateFFB) / 126.0;
double percentLength = 100; double percentLength = 100;
triggers->Rumble(0, percentForce, percentLength); triggers->Rumble(0, percentForce, percentLength);
triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce); triggers->Constant(constants->DIRECTION_FROM_RIGHT, percentForce);
} }
else if ((stateFFB > 0x00) && (stateFFB < 0x80)) else if ((stateFFB > 0x00) && (stateFFB < 0x80))
{ {
double percentForce = (stateFFB) / 127.0; double percentForce = (stateFFB) / 126.0;
double percentLength = 100; double percentLength = 100;
triggers->Rumble(percentForce, 0, percentLength); triggers->Rumble(percentForce, 0, percentLength);
triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce); triggers->Constant(constants->DIRECTION_FROM_LEFT, percentForce);