Loosen enhanced precision output curves for sticks

This commit is contained in:
Travis Nickles 2017-11-30 01:40:28 -06:00
parent d50c031bff
commit c479a30570
2 changed files with 14 additions and 8 deletions

View File

@ -838,28 +838,34 @@ namespace DS4Windows
if (absX <= 0.4)
{
outputX = 0.38 * absX;
//outputX = 0.38 * absX;
outputX = 0.385 * absX;
}
else if (absX <= 0.75)
{
outputX = absX - 0.248;
//outputX = absX - 0.248;
outputX = absX - 0.246;
}
else if (absX > 0.75)
{
outputX = (absX * 1.992) - 0.992;
//outputX = (absX * 1.992) - 0.992;
outputX = (absX * 1.984) - 0.984;
}
if (absY <= 0.4)
{
outputY = 0.38 * absY;
//outputY = 0.38 * absY;
outputY = 0.385 * absY;
}
else if (absY <= 0.75)
{
outputY = absY - 0.248;
//outputY = absY - 0.248;
outputY = absY - 0.246;
}
else if (absY > 0.75)
{
outputY = (absY * 1.992) - 0.992;
//outputY = (absY * 1.992) - 0.992;
outputY = (absY * 1.984) - 0.984;
}
dState.RX = (byte)(outputX * signX * 127.5 + 127.5);

View File

@ -2,8 +2,8 @@
* Integrate HidGuardian
* Experiment with ViGEm driver
* Replace BackgroundImage for panel controls to use PictureBox (high contrast)
* Further tweak analog stick mouse mode
* ~~Replace BackgroundImage for panel controls to use PictureBox (high contrast)~~
* ~~Further tweak analog stick mouse mode~~
* 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