Kaydet (Commit) 54be385b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Redo the temporary hack for long touch: just simulate a double-click

This is just throwaway experimentation, not how it should *really* be
done of course.

Change-Id: If600a5d3f01f118e84079f513dfccb25f4d59622
üst ee0e92c9
......@@ -103,12 +103,9 @@
NSLog(@"longPressGesture: state %d cords (%d,%d)",state ,(int)point.x,(int)point.y);
if (state == UIGestureRecognizerStateBegan) {
lo_mouse_drag(point.x, point.y, DOWN);
} else if (state == UIGestureRecognizerStateChanged) {
lo_mouse_drag(point.x, point.y, MOVE);
} else if (state == UIGestureRecognizerStateEnded) {
lo_mouse_drag(point.x, point.y, UP);
if (state == UIGestureRecognizerStateEnded) {
lo_tap(point.x, point.y);
lo_tap(point.x, point.y);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment