mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 19:14:20 +01:00
Cut off mouse remainders
This commit is contained in:
parent
5062e769ec
commit
f7d3d1bf47
@ -2387,8 +2387,11 @@ namespace DS4Windows
|
|||||||
horizontalRemainder = 0.0;
|
horizontalRemainder = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mouseX = (int)rawMouseX;
|
double mouseXTemp = rawMouseX - (Math.IEEERemainder(rawMouseX * 1000.0, 1.0) / 1000.0);
|
||||||
horizontalRemainder = rawMouseX - mouseX;
|
mouseX = (int)mouseXTemp;
|
||||||
|
horizontalRemainder = mouseXTemp - mouseX;
|
||||||
|
//mouseX = (int)rawMouseX;
|
||||||
|
//horizontalRemainder = rawMouseX - mouseX;
|
||||||
|
|
||||||
if ((rawMouseY > 0.0 && verticalRemainder > 0.0) || (rawMouseY < 0.0 && verticalRemainder < 0.0))
|
if ((rawMouseY > 0.0 && verticalRemainder > 0.0) || (rawMouseY < 0.0 && verticalRemainder < 0.0))
|
||||||
{
|
{
|
||||||
@ -2399,8 +2402,11 @@ namespace DS4Windows
|
|||||||
verticalRemainder = 0.0;
|
verticalRemainder = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mouseY = (int)rawMouseY;
|
double mouseYTemp = rawMouseY - (Math.IEEERemainder(rawMouseY * 1000.0, 1.0) / 1000.0);
|
||||||
verticalRemainder = rawMouseY - mouseY;
|
mouseY = (int)mouseYTemp;
|
||||||
|
verticalRemainder = mouseYTemp - mouseY;
|
||||||
|
//mouseY = (int)rawMouseY;
|
||||||
|
//verticalRemainder = rawMouseY - mouseY;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool compare(byte b1, byte b2)
|
public static bool compare(byte b1, byte b2)
|
||||||
|
Loading…
Reference in New Issue
Block a user