From 46c391f1d9ecbd92c127e9a0ff92a0d8bcf74a15 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 17 Mar 2018 01:27:35 -0500 Subject: [PATCH] Changed Enhanced Precision curve for sticks Actually loosened them a bit more. The curves now correspond to the curves used in my changes to Touchmote --- DS4Windows/DS4Control/Mapping.cs | 24 ++++++++++++------------ TODO.md | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index c63ee43..f2b3fe2 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -779,28 +779,28 @@ namespace DS4Windows if (absX <= 0.4) { - outputX = 0.385 * absX; + outputX = 0.414 * absX; } else if (absX <= 0.75) { - outputX = absX - 0.246; + outputX = absX - 0.24; } else if (absX > 0.75) { - outputX = (absX * 1.984) - 0.984; + outputX = (absX * 1.9376) - 0.9376; } if (absY <= 0.4) { - outputY = 0.385 * absY; + outputY = 0.414 * absY; } else if (absY <= 0.75) { - outputY = absY - 0.246; + outputY = absY - 0.24; } else if (absY > 0.75) { - outputY = (absY * 1.984) - 0.984; + outputY = (absY * 1.9376) - 0.9376; } dState.LX = (byte)(outputX * signX * 127.5 + 127.5); @@ -839,28 +839,28 @@ namespace DS4Windows if (absX <= 0.4) { - outputX = 0.385 * absX; + outputX = 0.414 * absX; } else if (absX <= 0.75) { - outputX = absX - 0.246; + outputX = absX - 0.24; } else if (absX > 0.75) { - outputX = (absX * 1.984) - 0.984; + outputX = (absX * 1.9376) - 0.9376; } if (absY <= 0.4) { - outputY = 0.385 * absY; + outputY = 0.414 * absY; } else if (absY <= 0.75) { - outputY = absY - 0.246; + outputY = absY - 0.24; } else if (absY > 0.75) { - outputY = (absY * 1.984) - 0.984; + outputY = (absY * 1.9376) - 0.9376; } dState.RX = (byte)(outputX * signX * 127.5 + 127.5); diff --git a/TODO.md b/TODO.md index db4d192..7473f32 100644 --- a/TODO.md +++ b/TODO.md @@ -4,7 +4,7 @@ * Attempt to work out BT disconnect issues by looking at older versions * Attempt to remove reliance on the main thread when disconnecting a device. Currently used to delay hotplug routine -* Possibly lower Enhanced Precision sensitivity by a notch +* ~~Possibly lower Enhanced Precision sensitivity by a notch~~ * Look into distributing profile properties around various objects rather than using a lot of getters to obtain properties each poll. It will complicate the architecture a little bit but hopefully