mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +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);
|
||||
else if (!useReverseRatchet && !triggeractivated)
|
||||
cursor.sixaxisMoved(arg);
|
||||
else
|
||||
cursor.mouseRemainderReset();
|
||||
|
||||
dev.getCurrentState(s);
|
||||
}
|
||||
|
@ -109,6 +109,11 @@ namespace DS4Windows
|
||||
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)
|
||||
{
|
||||
if (arg.touches.Length == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user