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
This commit is contained in:
Travis Nickles 2018-03-17 01:27:35 -05:00
parent f90a72ee7b
commit 46c391f1d9
2 changed files with 13 additions and 13 deletions

View File

@ -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);

View File

@ -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