mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-30 04:54:20 +01:00
Raised enhanced precision curve
This commit is contained in:
parent
e1bb1ac042
commit
d5fa84c52c
@ -779,28 +779,28 @@ namespace DS4Windows
|
||||
|
||||
if (absX <= 0.4)
|
||||
{
|
||||
outputX = 0.51 * absX;
|
||||
outputX = 0.53 * absX;
|
||||
}
|
||||
else if (absX <= 0.75)
|
||||
{
|
||||
outputX = absX - 0.196;
|
||||
outputX = absX - 0.188;
|
||||
}
|
||||
else if (absX > 0.75)
|
||||
{
|
||||
outputX = (absX * 1.784) - 0.784;
|
||||
outputX = (absX * 1.752) - 0.752;
|
||||
}
|
||||
|
||||
if (absY <= 0.4)
|
||||
{
|
||||
outputY = 0.51 * absY;
|
||||
outputY = 0.53 * absY;
|
||||
}
|
||||
else if (absY <= 0.75)
|
||||
{
|
||||
outputY = absY - 0.196;
|
||||
outputY = absY - 0.188;
|
||||
}
|
||||
else if (absY > 0.75)
|
||||
{
|
||||
outputY = (absY * 1.784) - 0.784;
|
||||
outputY = (absY * 1.752) - 0.752;
|
||||
}
|
||||
|
||||
dState.LX = (byte)(outputX * signX * 127.5 + 127.5);
|
||||
@ -839,28 +839,28 @@ namespace DS4Windows
|
||||
|
||||
if (absX <= 0.4)
|
||||
{
|
||||
outputX = 0.51 * absX;
|
||||
outputX = 0.53 * absX;
|
||||
}
|
||||
else if (absX <= 0.75)
|
||||
{
|
||||
outputX = absX - 0.196;
|
||||
outputX = absX - 0.188;
|
||||
}
|
||||
else if (absX > 0.75)
|
||||
{
|
||||
outputX = (absX * 1.784) - 0.784;
|
||||
outputX = (absX * 1.752) - 0.752;
|
||||
}
|
||||
|
||||
if (absY <= 0.4)
|
||||
{
|
||||
outputY = 0.51 * absY;
|
||||
outputY = 0.53 * absY;
|
||||
}
|
||||
else if (absY <= 0.75)
|
||||
{
|
||||
outputY = absY - 0.196;
|
||||
outputY = absY - 0.188;
|
||||
}
|
||||
else if (absY > 0.75)
|
||||
{
|
||||
outputY = (absY * 1.784) - 0.784;
|
||||
outputY = (absY * 1.752) - 0.752;
|
||||
}
|
||||
|
||||
dState.RX = (byte)(outputX * signX * 127.5 + 127.5);
|
||||
|
Loading…
Reference in New Issue
Block a user