mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 15:41:49 +01:00
Change touchpad jitter compensation
This commit is contained in:
parent
39d0579f09
commit
cdb17f43a7
@ -243,15 +243,15 @@ namespace DS4Windows
|
||||
if (jitterCompenstation)
|
||||
{
|
||||
double absX = Math.Abs(xMotion);
|
||||
if (absX <= normX * 0.4)
|
||||
if (absX <= normX * 0.34)
|
||||
{
|
||||
xMotion = signX * Math.Pow(absX / 0.4f, 1.44) * 0.4;
|
||||
xMotion = signX * Math.Pow(absX / 0.34f, 1.44) * 0.34;
|
||||
}
|
||||
|
||||
double absY = Math.Abs(yMotion);
|
||||
if (absY <= normY * 0.4)
|
||||
if (absY <= normY * 0.34)
|
||||
{
|
||||
yMotion = signY * Math.Pow(absY / 0.4f, 1.44) * 0.4;
|
||||
yMotion = signY * Math.Pow(absY / 0.34f, 1.44) * 0.34;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user