Now have to move the touchpad a small distance to start scroll

This allows multitouch to be useful as middlemouse w/ scrolling enabled(Yes a lot of small changes I'm sorry)
This commit is contained in:
jays2kings 2014-04-28 23:02:12 -04:00
parent 5bdcdd99ea
commit 044a38f1a9

View File

@ -33,6 +33,7 @@ namespace DS4Control
public virtual void touchesMoved(object sender, TouchpadEventArgs arg) public virtual void touchesMoved(object sender, TouchpadEventArgs arg)
{ {
cursor.touchesMoved(arg); cursor.touchesMoved(arg);
if (Math.Abs(firstTouch.hwX - arg.touches[0].hwX) > 5 && Math.Abs(firstTouch.hwY - arg.touches[0].hwY) > 5)
wheel.touchesMoved(arg); wheel.touchesMoved(arg);
dev.getCurrentState(s); dev.getCurrentState(s);
synthesizeMouseButtons(); synthesizeMouseButtons();