From 3cd99122892fe35b33534934c810f3641f32aab4 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 20 May 2018 02:18:28 -0500 Subject: [PATCH] Changed parameters for touchpad jitter compensation --- 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 1615350..e437403 100644 --- a/DS4Windows/DS4Control/MouseCursor.cs +++ b/DS4Windows/DS4Control/MouseCursor.cs @@ -251,15 +251,15 @@ namespace DS4Windows if (jitterCompenstation) { double absX = Math.Abs(xMotion); - if (absX <= normX * 0.34) + if (absX <= normX * 0.15) { - xMotion = signX * Math.Pow(absX / 0.34f, 1.44) * 0.34; + xMotion = signX * Math.Pow(absX / 0.15f, 1.408) * 0.15; } double absY = Math.Abs(yMotion); - if (absY <= normY * 0.34) + if (absY <= normY * 0.15) { - yMotion = signY * Math.Pow(absY / 0.34f, 1.44) * 0.34; + yMotion = signY * Math.Pow(absY / 0.15f, 1.408) * 0.15; } }