mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-30 04:54:20 +01:00
Double check that mouse remainders are reset when gyro mouse is not active
This commit is contained in:
parent
6eb618a934
commit
35031f5c5f
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user