Loosen enhanced precision curve

This commit is contained in:
Travis Nickles 2018-12-12 05:03:18 -06:00
parent 461c7936c2
commit 957f01ee05

View File

@ -839,28 +839,28 @@ namespace DS4Windows
if (absX <= 0.4) if (absX <= 0.4)
{ {
outputX = 0.54 * absX; outputX = 0.545 * absX;
} }
else if (absX <= 0.75) else if (absX <= 0.75)
{ {
outputX = absX - 0.184; outputX = absX - 0.182;
} }
else if (absX > 0.75) else if (absX > 0.75)
{ {
outputX = (absX * 1.736) - 0.736; outputX = (absX * 1.728) - 0.728;
} }
if (absY <= 0.4) if (absY <= 0.4)
{ {
outputY = 0.54 * absY; outputY = 0.545 * absY;
} }
else if (absY <= 0.75) else if (absY <= 0.75)
{ {
outputY = absY - 0.184; outputY = absY - 0.182;
} }
else if (absY > 0.75) else if (absY > 0.75)
{ {
outputY = (absY * 1.736) - 0.736; outputY = (absY * 1.728) - 0.728;
} }
dState.RX = (byte)(outputX * signX * 127.5 + 127.5); dState.RX = (byte)(outputX * signX * 127.5 + 127.5);