1
0
mirror of synced 2024-11-30 17:34:33 +01:00
This commit is contained in:
Boomslangnz 2022-06-08 17:07:52 +12:00
parent 70bfc036de
commit 82ff1c0998

View File

@ -59,13 +59,12 @@ void WMMT3::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers
if (setReflect != OldsetReflect) if (setReflect != OldsetReflect)
{ {
//if (setReflect == 0x00) if (setReflect == 0x00)
//{ {
// triggers->Constant(constants->DIRECTION_FROM_LEFT, 0); triggers->Constant(constants->DIRECTION_FROM_LEFT, 0);
// triggers->Constant(constants->DIRECTION_FROM_RIGHT, 0); triggers->Constant(constants->DIRECTION_FROM_RIGHT, 0);
//} }
//else else if (setReflect > 0x00 && setReflect <= 0x3F)
if (setReflect > 0x00 && setReflect <= 0x3F)
{ {
double percentForce = setReflect / 63.0; double percentForce = setReflect / 63.0;
double percentLength = 100; double percentLength = 100;
@ -83,14 +82,13 @@ void WMMT3::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers
if (setCenterOffset != OldsetCenterOffset) if (setCenterOffset != OldsetCenterOffset)
{ {
/* if (setCenterOffset == 0x00) if (setCenterOffset == 0x00)
{ {
triggers->Rumble(0, 0, 0); triggers->Rumble(0, 0, 0);
triggers->Constant(constants->DIRECTION_FROM_LEFT, 0); triggers->Constant(constants->DIRECTION_FROM_LEFT, 0);
triggers->Constant(constants->DIRECTION_FROM_RIGHT, 0); triggers->Constant(constants->DIRECTION_FROM_RIGHT, 0);
} }
else*/ else if (setCenterOffset > 0x00 && setCenterOffset <= 0x3F)
if (setCenterOffset > 0x00 && setCenterOffset <= 0x3F)
{ {
double percentForce = setCenterOffset / 63.0; double percentForce = setCenterOffset / 63.0;
double percentLength = 100; double percentLength = 100;