Changed HOTD4,LGI & LGI3D to use feedback length
This commit is contained in:
parent
a4b6c582df
commit
6a25aad9b7
@ -94,6 +94,7 @@ Rumble2Length=200
|
||||
|
||||
[HOTD4]
|
||||
GameId=4
|
||||
FeedbackLength=100
|
||||
EnableRumble=1
|
||||
Device2GUID=
|
||||
Bullet1pStrength=50
|
||||
@ -108,6 +109,7 @@ HowtoRumbleHealthEffect=0
|
||||
|
||||
[LGI]
|
||||
GameId=31
|
||||
FeedbackLength=100
|
||||
EnableRumble=1
|
||||
Device2GUID=
|
||||
Knock1pStrength=50
|
||||
@ -122,6 +124,7 @@ HowtoRumbleHealthEffect=0
|
||||
|
||||
[LGI3D]
|
||||
GameId=30
|
||||
FeedbackLength=100
|
||||
EnableRumble=1
|
||||
Device2GUID=
|
||||
Knock1pStrength=50
|
||||
|
@ -66,6 +66,7 @@ static int RunningThread(void *ptr)
|
||||
UINT8 newBullet2p = Bullet2p;
|
||||
|
||||
wchar_t *settingsFilename = TEXT(".\\FFBPlugin.ini");
|
||||
int configFeedbackLength = GetPrivateProfileInt(TEXT("Settings"), TEXT("FeedbackLength"), 120, settingsFilename);
|
||||
int HowtoRumbleBulletEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleBulletEffect"), 0, settingsFilename);
|
||||
int HowtoRumbleGrenadeEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleGrenadeEffect"), 0, settingsFilename);
|
||||
int HowtoRumbleHealthEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleHealthEffect"), 0, settingsFilename);
|
||||
@ -83,19 +84,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
HealthA = true;
|
||||
@ -109,19 +110,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
HealthB = true;
|
||||
@ -135,19 +136,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -156,19 +157,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleBulletEffect == 0)
|
||||
{
|
||||
double percentForce = ((Bullet1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleBulletEffect == 1)
|
||||
{
|
||||
double percentForce = ((Bullet1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleBulletEffect == 2)
|
||||
{
|
||||
double percentForce = ((Bullet1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -177,19 +178,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleGrenadeEffect == 0)
|
||||
{
|
||||
double percentForce = ((Grenade1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleGrenadeEffect == 1)
|
||||
{
|
||||
double percentForce = ((Grenade1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleGrenadeEffect == 2)
|
||||
{
|
||||
double percentForce = ((Grenade1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -203,19 +204,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -224,19 +225,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleBulletEffect == 0)
|
||||
{
|
||||
double percentForce = ((Bullet2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleBulletEffect == 1)
|
||||
{
|
||||
double percentForce = ((Bullet2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleBulletEffect == 2)
|
||||
{
|
||||
double percentForce = ((Bullet2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -245,19 +246,19 @@ static int RunningThread(void *ptr)
|
||||
if (HowtoRumbleGrenadeEffect == 0)
|
||||
{
|
||||
double percentForce = ((Grenade2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleGrenadeEffect == 1)
|
||||
{
|
||||
double percentForce = ((Grenade2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleGrenadeEffect == 2)
|
||||
{
|
||||
double percentForce = ((Grenade2pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
myTriggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
float newFloat2 = health2p;
|
||||
|
||||
wchar_t *settingsFilename = TEXT(".\\FFBPlugin.ini");
|
||||
int configFeedbackLength = GetPrivateProfileInt(TEXT("Settings"), TEXT("FeedbackLength"), 120, settingsFilename);
|
||||
int HowtoRumbleKnockEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleKnockEffect"), 0, settingsFilename);
|
||||
int HowtoRumbleMotorEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleMotorEffect"), 0, settingsFilename);
|
||||
int HowtoRumbleHealthEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleHealthEffect"), 0, settingsFilename);
|
||||
@ -97,19 +98,19 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -118,19 +119,19 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -139,19 +140,19 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -160,19 +161,19 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -181,19 +182,19 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -202,19 +203,19 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -223,21 +224,21 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
@ -247,21 +248,21 @@ void LGI::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers*
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
float newFloat2 = health2p;
|
||||
|
||||
wchar_t *settingsFilename = TEXT(".\\FFBPlugin.ini");
|
||||
int configFeedbackLength = GetPrivateProfileInt(TEXT("Settings"), TEXT("FeedbackLength"), 120, settingsFilename);
|
||||
int HowtoRumbleKnockEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleKnockEffect"), 0, settingsFilename);
|
||||
int HowtoRumbleMotorEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleMotorEffect"), 0, settingsFilename);
|
||||
int HowtoRumbleHealthEffect = GetPrivateProfileInt(TEXT("Settings"), TEXT("HowtoRumbleHealthEffect"), 0, settingsFilename);
|
||||
@ -98,19 +99,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health1pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -119,19 +120,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleHealthEffect == 0)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 1)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleHealthEffect == 2)
|
||||
{
|
||||
double percentForce = ((Health2pStrength) / 100.0);
|
||||
double percentLength = (400);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -140,19 +141,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -161,19 +162,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -182,19 +183,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -203,19 +204,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -224,19 +225,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -245,19 +246,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -266,19 +267,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -287,19 +288,19 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
}
|
||||
@ -308,21 +309,21 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleKnockEffect == 0)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 1)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleKnockEffect == 2)
|
||||
{
|
||||
double percentForce = ((Knock1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
@ -332,21 +333,21 @@ void LGI3D::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers
|
||||
if (HowtoRumbleMotorEffect == 0)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 1)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(0, percentForce, percentLength);
|
||||
triggers->LeftRightDevice2(0, percentForce, percentLength);
|
||||
}
|
||||
else if (HowtoRumbleMotorEffect == 2)
|
||||
{
|
||||
double percentForce = ((Motor1pStrength) / 100.0);
|
||||
double percentLength = (100);
|
||||
double percentLength = configFeedbackLength;
|
||||
triggers->LeftRight(percentForce, 0, percentLength);
|
||||
triggers->LeftRightDevice2(percentForce, 0, percentLength);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user