mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
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:
parent
f90a72ee7b
commit
46c391f1d9
@ -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);
|
||||
|
2
TODO.md
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user