mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Loosen enhanced precision output curves for sticks
This commit is contained in:
parent
d50c031bff
commit
c479a30570
@ -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);
|
||||
|
4
TODO.md
4
TODO.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user