From d5fa84c52c43dbeb0f1105b564d1ca46924820b9 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 11 Dec 2018 22:34:23 -0600 Subject: [PATCH] Raised enhanced precision curve --- 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 7a6fae8..3dff2c2 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -779,28 +779,28 @@ namespace DS4Windows if (absX <= 0.4) { - outputX = 0.51 * absX; + outputX = 0.53 * absX; } else if (absX <= 0.75) { - outputX = absX - 0.196; + outputX = absX - 0.188; } else if (absX > 0.75) { - outputX = (absX * 1.784) - 0.784; + outputX = (absX * 1.752) - 0.752; } if (absY <= 0.4) { - outputY = 0.51 * absY; + outputY = 0.53 * absY; } else if (absY <= 0.75) { - outputY = absY - 0.196; + outputY = absY - 0.188; } else if (absY > 0.75) { - outputY = (absY * 1.784) - 0.784; + outputY = (absY * 1.752) - 0.752; } dState.LX = (byte)(outputX * signX * 127.5 + 127.5); @@ -839,28 +839,28 @@ namespace DS4Windows if (absX <= 0.4) { - outputX = 0.51 * absX; + outputX = 0.53 * absX; } else if (absX <= 0.75) { - outputX = absX - 0.196; + outputX = absX - 0.188; } else if (absX > 0.75) { - outputX = (absX * 1.784) - 0.784; + outputX = (absX * 1.752) - 0.752; } if (absY <= 0.4) { - outputY = 0.51 * absY; + outputY = 0.53 * absY; } else if (absY <= 0.75) { - outputY = absY - 0.196; + outputY = absY - 0.188; } else if (absY > 0.75) { - outputY = (absY * 1.784) - 0.784; + outputY = (absY * 1.752) - 0.752; } dState.RX = (byte)(outputX * signX * 127.5 + 127.5);