Use current enhanced precision settings for LS

This commit is contained in:
Travis Nickles 2018-12-15 12:26:52 -06:00
parent 1019790e25
commit 59dbee7c35

View File

@ -779,28 +779,28 @@ namespace DS4Windows
if (absX <= 0.4) if (absX <= 0.4)
{ {
outputX = 0.54 * absX; outputX = 0.544 * absX;
} }
else if (absX <= 0.75) else if (absX <= 0.75)
{ {
outputX = absX - 0.184; outputX = absX - 0.1824;
} }
else if (absX > 0.75) else if (absX > 0.75)
{ {
outputX = (absX * 1.736) - 0.736; outputX = (absX * 1.7296) - 0.7296;
} }
if (absY <= 0.4) if (absY <= 0.4)
{ {
outputY = 0.54 * absY; outputY = 0.544 * absY;
} }
else if (absY <= 0.75) else if (absY <= 0.75)
{ {
outputY = absY - 0.184; outputY = absY - 0.1824;
} }
else if (absY > 0.75) else if (absY > 0.75)
{ {
outputY = (absY * 1.736) - 0.736; outputY = (absY * 1.7296) - 0.7296;
} }
dState.LX = (byte)(outputX * signX * 127.5 + 127.5); dState.LX = (byte)(outputX * signX * 127.5 + 127.5);