Raised enhanced precision curve

This commit is contained in:
Travis Nickles 2018-12-11 22:34:23 -06:00
parent e1bb1ac042
commit d5fa84c52c

View File

@ -779,28 +779,28 @@ namespace DS4Windows
if (absX <= 0.4)
{
outputX = 0.51 * absX;
outputX = 0.53 * absX;
}
else if (absX <= 0.75)
{
outputX = absX - 0.196;
outputX = absX - 0.188;
}
else if (absX > 0.75)
{
outputX = (absX * 1.784) - 0.784;
outputX = (absX * 1.752) - 0.752;
}
if (absY <= 0.4)
{
outputY = 0.51 * absY;
outputY = 0.53 * absY;
}
else if (absY <= 0.75)
{
outputY = absY - 0.196;
outputY = absY - 0.188;
}
else if (absY > 0.75)
{
outputY = (absY * 1.784) - 0.784;
outputY = (absY * 1.752) - 0.752;
}
dState.LX = (byte)(outputX * signX * 127.5 + 127.5);
@ -839,28 +839,28 @@ namespace DS4Windows
if (absX <= 0.4)
{
outputX = 0.51 * absX;
outputX = 0.53 * absX;
}
else if (absX <= 0.75)
{
outputX = absX - 0.196;
outputX = absX - 0.188;
}
else if (absX > 0.75)
{
outputX = (absX * 1.784) - 0.784;
outputX = (absX * 1.752) - 0.752;
}
if (absY <= 0.4)
{
outputY = 0.51 * absY;
outputY = 0.53 * absY;
}
else if (absY <= 0.75)
{
outputY = absY - 0.196;
outputY = absY - 0.188;
}
else if (absY > 0.75)
{
outputY = (absY * 1.784) - 0.784;
outputY = (absY * 1.752) - 0.752;
}
dState.RX = (byte)(outputX * signX * 127.5 + 127.5);