Raised enhanced precision curve

This commit is contained in:
Travis Nickles 2018-12-11 05:47:44 -06:00
parent 8783f199aa
commit e1bb1ac042

View File

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