Double check that mouse remainders are reset when gyro mouse is not active

This commit is contained in:
Travis Nickles 2017-06-22 07:36:40 -07:00
parent 6eb618a934
commit 35031f5c5f
2 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,8 @@ namespace DS4Windows
cursor.sixaxisMoved(arg); cursor.sixaxisMoved(arg);
else if (!useReverseRatchet && !triggeractivated) else if (!useReverseRatchet && !triggeractivated)
cursor.sixaxisMoved(arg); cursor.sixaxisMoved(arg);
else
cursor.mouseRemainderReset();
dev.getCurrentState(s); dev.getCurrentState(s);
} }

View File

@ -109,6 +109,11 @@ namespace DS4Windows
vDirection = yMotion > 0.0 ? Direction.Positive : yMotion < 0.0 ? Direction.Negative : Direction.Neutral; vDirection = yMotion > 0.0 ? Direction.Positive : yMotion < 0.0 ? Direction.Negative : Direction.Neutral;
} }
public void mouseRemainderReset()
{
hRemainder = vRemainder = 0.0;
}
public void touchesBegan(TouchpadEventArgs arg) public void touchesBegan(TouchpadEventArgs arg)
{ {
if (arg.touches.Length == 1) if (arg.touches.Length == 1)