From dd1c2eca62558573948506536929b4b3385455cd Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 19 Aug 2017 18:39:03 -0500 Subject: [PATCH] Change touchpad jitter values --- DS4Windows/DS4Control/MouseCursor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DS4Windows/DS4Control/MouseCursor.cs b/DS4Windows/DS4Control/MouseCursor.cs index e004c18..e7da6d2 100644 --- a/DS4Windows/DS4Control/MouseCursor.cs +++ b/DS4Windows/DS4Control/MouseCursor.cs @@ -242,15 +242,15 @@ namespace DS4Windows if (jitterCompenstation) { double absX = System.Math.Abs(xMotion); - if (absX <= normX * 1.0) + if (absX <= normX * 0.4) { - xMotion = signX * System.Math.Pow(absX, 1.0725); + xMotion = signX * System.Math.Pow(absX / 0.4f, 1.44) * 0.4; } double absY = System.Math.Abs(yMotion); - if (absY <= normY * 1.0) + if (absY <= normY * 0.4) { - yMotion = signY * System.Math.Pow(absY, 1.0725); + yMotion = signY * System.Math.Pow(absY / 0.4f, 1.44) * 0.4; } }