mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Merge branch 'jay' into vigem-udpserver
This commit is contained in:
commit
9bf7e5911f
@ -779,28 +779,28 @@ namespace DS4Windows
|
||||
|
||||
if (absX <= 0.4)
|
||||
{
|
||||
outputX = 0.48 * absX;
|
||||
outputX = 0.481 * absX;
|
||||
}
|
||||
else if (absX <= 0.75)
|
||||
{
|
||||
outputX = absX - 0.208;
|
||||
outputX = absX - 0.2076;
|
||||
}
|
||||
else if (absX > 0.75)
|
||||
{
|
||||
outputX = (absX * 1.8319) - 0.8319;
|
||||
outputX = (absX * 1.8304) - 0.8304;
|
||||
}
|
||||
|
||||
if (absY <= 0.4)
|
||||
{
|
||||
outputY = 0.48 * absY;
|
||||
outputY = 0.481 * absY;
|
||||
}
|
||||
else if (absY <= 0.75)
|
||||
{
|
||||
outputY = absY - 0.208;
|
||||
outputY = absY - 0.2076;
|
||||
}
|
||||
else if (absY > 0.75)
|
||||
{
|
||||
outputY = (absY * 1.8319) - 0.8319;
|
||||
outputY = (absY * 1.8304) - 0.8304;
|
||||
}
|
||||
|
||||
dState.LX = (byte)(outputX * signX * 127.5 + 127.5);
|
||||
@ -839,28 +839,28 @@ namespace DS4Windows
|
||||
|
||||
if (absX <= 0.4)
|
||||
{
|
||||
outputX = 0.48 * absX;
|
||||
outputX = 0.481 * absX;
|
||||
}
|
||||
else if (absX <= 0.75)
|
||||
{
|
||||
outputX = absX - 0.208;
|
||||
outputX = absX - 0.2076;
|
||||
}
|
||||
else if (absX > 0.75)
|
||||
{
|
||||
outputX = (absX * 1.8319) - 0.8319;
|
||||
outputX = (absX * 1.8304) - 0.8304;
|
||||
}
|
||||
|
||||
if (absY <= 0.4)
|
||||
{
|
||||
outputY = 0.48 * absY;
|
||||
outputY = 0.481 * absY;
|
||||
}
|
||||
else if (absY <= 0.75)
|
||||
{
|
||||
outputY = absY - 0.208;
|
||||
outputY = absY - 0.2076;
|
||||
}
|
||||
else if (absY > 0.75)
|
||||
{
|
||||
outputY = (absY * 1.8319) - 0.8319;
|
||||
outputY = (absY * 1.8304) - 0.8304;
|
||||
}
|
||||
|
||||
dState.RX = (byte)(outputX * signX * 127.5 + 127.5);
|
||||
|
Loading…
Reference in New Issue
Block a user