mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Need to populate firstTouch object because Touch instances are being reused
Related to issue #190.
This commit is contained in:
parent
fda67e7fba
commit
beca066207
@ -49,6 +49,7 @@ namespace DS4Windows
|
|||||||
cursor = new MouseCursor(deviceNum);
|
cursor = new MouseCursor(deviceNum);
|
||||||
wheel = new MouseWheel(deviceNum);
|
wheel = new MouseWheel(deviceNum);
|
||||||
trackballAccel = TRACKBALL_RADIUS * TRACKBALL_INIT_FICTION / TRACKBALL_INERTIA;
|
trackballAccel = TRACKBALL_RADIUS * TRACKBALL_INIT_FICTION / TRACKBALL_INERTIA;
|
||||||
|
firstTouch = new Touch(0, 0, 0, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ResetTrackAccel(double friction)
|
public void ResetTrackAccel(double friction)
|
||||||
@ -196,7 +197,8 @@ namespace DS4Windows
|
|||||||
}
|
}
|
||||||
|
|
||||||
pastTime = arg.timeStamp;
|
pastTime = arg.timeStamp;
|
||||||
firstTouch = arg.touches[0];
|
firstTouch.populate(arg.touches[0].hwX, arg.touches[0].hwY, arg.touches[0].touchID,
|
||||||
|
arg.touches[0].previousTouch);
|
||||||
|
|
||||||
if (Global.getDoubleTap(deviceNum))
|
if (Global.getDoubleTap(deviceNum))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user