From 59dbee7c35fa5bc4f95d195fbe75fffb1a5eb9d9 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 15 Dec 2018 12:26:52 -0600 Subject: [PATCH] Use current enhanced precision settings for LS --- DS4Windows/DS4Control/Mapping.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index aa4b0f8..b98d700 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -779,28 +779,28 @@ namespace DS4Windows if (absX <= 0.4) { - outputX = 0.54 * absX; + outputX = 0.544 * absX; } else if (absX <= 0.75) { - outputX = absX - 0.184; + outputX = absX - 0.1824; } else if (absX > 0.75) { - outputX = (absX * 1.736) - 0.736; + outputX = (absX * 1.7296) - 0.7296; } if (absY <= 0.4) { - outputY = 0.54 * absY; + outputY = 0.544 * absY; } else if (absY <= 0.75) { - outputY = absY - 0.184; + outputY = absY - 0.1824; } 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);