mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-25 16:11:49 +01:00
Add Enhanced Precision curve changes to LS
This commit is contained in:
parent
c479a30570
commit
bc181b3e8b
@ -778,28 +778,28 @@ namespace DS4Windows
|
|||||||
|
|
||||||
if (absX <= 0.4)
|
if (absX <= 0.4)
|
||||||
{
|
{
|
||||||
outputX = 0.38 * absX;
|
outputX = 0.385 * absX;
|
||||||
}
|
}
|
||||||
else if (absX <= 0.75)
|
else if (absX <= 0.75)
|
||||||
{
|
{
|
||||||
outputX = absX - 0.248;
|
outputX = absX - 0.246;
|
||||||
}
|
}
|
||||||
else if (absX > 0.75)
|
else if (absX > 0.75)
|
||||||
{
|
{
|
||||||
outputX = (absX * 1.992) - 0.992;
|
outputX = (absX * 1.984) - 0.984;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (absY <= 0.4)
|
if (absY <= 0.4)
|
||||||
{
|
{
|
||||||
outputY = 0.38 * absY;
|
outputY = 0.385 * absY;
|
||||||
}
|
}
|
||||||
else if (absY <= 0.75)
|
else if (absY <= 0.75)
|
||||||
{
|
{
|
||||||
outputY = absY - 0.248;
|
outputY = absY - 0.246;
|
||||||
}
|
}
|
||||||
else if (absY > 0.75)
|
else if (absY > 0.75)
|
||||||
{
|
{
|
||||||
outputY = (absY * 1.992) - 0.992;
|
outputY = (absY * 1.984) - 0.984;
|
||||||
}
|
}
|
||||||
|
|
||||||
dState.LX = (byte)(outputX * signX * 127.5 + 127.5);
|
dState.LX = (byte)(outputX * signX * 127.5 + 127.5);
|
||||||
@ -838,33 +838,27 @@ namespace DS4Windows
|
|||||||
|
|
||||||
if (absX <= 0.4)
|
if (absX <= 0.4)
|
||||||
{
|
{
|
||||||
//outputX = 0.38 * absX;
|
|
||||||
outputX = 0.385 * absX;
|
outputX = 0.385 * absX;
|
||||||
}
|
}
|
||||||
else if (absX <= 0.75)
|
else if (absX <= 0.75)
|
||||||
{
|
{
|
||||||
//outputX = absX - 0.248;
|
|
||||||
outputX = absX - 0.246;
|
outputX = absX - 0.246;
|
||||||
}
|
}
|
||||||
else if (absX > 0.75)
|
else if (absX > 0.75)
|
||||||
{
|
{
|
||||||
//outputX = (absX * 1.992) - 0.992;
|
|
||||||
outputX = (absX * 1.984) - 0.984;
|
outputX = (absX * 1.984) - 0.984;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (absY <= 0.4)
|
if (absY <= 0.4)
|
||||||
{
|
{
|
||||||
//outputY = 0.38 * absY;
|
|
||||||
outputY = 0.385 * absY;
|
outputY = 0.385 * absY;
|
||||||
}
|
}
|
||||||
else if (absY <= 0.75)
|
else if (absY <= 0.75)
|
||||||
{
|
{
|
||||||
//outputY = absY - 0.248;
|
|
||||||
outputY = absY - 0.246;
|
outputY = absY - 0.246;
|
||||||
}
|
}
|
||||||
else if (absY > 0.75)
|
else if (absY > 0.75)
|
||||||
{
|
{
|
||||||
//outputY = (absY * 1.992) - 0.992;
|
|
||||||
outputY = (absY * 1.984) - 0.984;
|
outputY = (absY * 1.984) - 0.984;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user