mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-12 00:09:11 +01:00
Change touchpad jitter compensation
This commit is contained in:
parent
39d0579f09
commit
cdb17f43a7
@ -243,15 +243,15 @@ namespace DS4Windows
|
|||||||
if (jitterCompenstation)
|
if (jitterCompenstation)
|
||||||
{
|
{
|
||||||
double absX = Math.Abs(xMotion);
|
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);
|
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…
x
Reference in New Issue
Block a user