From e317c6e84a8a14cabf1a87630f2f524b1c93c606 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 15 Oct 2018 17:20:05 -0500 Subject: [PATCH] Loosen enhanced precision curves --- DS4Windows/DS4Control/Mapping.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index e906861..153ce18 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -779,28 +779,28 @@ namespace DS4Windows if (absX <= 0.4) { - outputX = 0.47 * absX; + outputX = 0.48 * absX; } else if (absX <= 0.75) { - outputX = absX - 0.212; + outputX = absX - 0.208; } else if (absX > 0.75) { - outputX = (absX * 1.848) - 0.848; + outputX = (absX * 1.8319) - 0.8319; } if (absY <= 0.4) { - outputY = 0.47 * absY; + outputY = 0.48 * absY; } else if (absY <= 0.75) { - outputY = absY - 0.212; + outputY = absY - 0.208; } else if (absY > 0.75) { - outputY = (absY * 1.848) - 0.848; + outputY = (absY * 1.8319) - 0.8319; } dState.LX = (byte)(outputX * signX * 127.5 + 127.5); @@ -839,28 +839,28 @@ namespace DS4Windows if (absX <= 0.4) { - outputX = 0.47 * absX; + outputX = 0.48 * absX; } else if (absX <= 0.75) { - outputX = absX - 0.212; + outputX = absX - 0.208; } else if (absX > 0.75) { - outputX = (absX * 1.848) - 0.848; + outputX = (absX * 1.8319) - 0.8319; } if (absY <= 0.4) { - outputY = 0.47 * absY; + outputY = 0.48 * absY; } else if (absY <= 0.75) { - outputY = absY - 0.212; + outputY = absY - 0.208; } else if (absY > 0.75) { - outputY = (absY * 1.848) - 0.848; + outputY = (absY * 1.8319) - 0.8319; } dState.RX = (byte)(outputX * signX * 127.5 + 127.5);