Apply trigger max zone when dead zone is 0.0

Related to issue #1075
This commit is contained in:
Travis Nickles 2020-01-27 11:04:24 -06:00
parent 64a0c81173
commit 5e6dc361a2

View File

@ -837,6 +837,11 @@ namespace DS4Windows
tempL2Output = 0.0;
}
}
else
{
double current = Global.Clamp(0, dState.L2, maxValue);
tempL2Output = current / maxValue;
}
if (l2MaxOutput != 100.0)
{
@ -887,6 +892,11 @@ namespace DS4Windows
tempR2Output = 0.0;
}
}
else
{
double current = Global.Clamp(0, dState.R2, maxValue);
tempR2Output = current / maxValue;
}
if (r2MaxOutput != 100.0)
{