public static TouchPadEvent move(Touch touch) { TouchPadEvent event = new TouchPadEvent(); event.dt = touch.dt; event.dx = touch.dx; event.dy = touch.dy; return event; }
public static TouchPadEvent drag(Touch touch) { TouchPadEvent event = new TouchPadEvent(); event.dt = touch.dt; event.dx = touch.dx; event.dy = touch.dy; event.button1 = true; return event; }
public static TouchPadEvent scroll(Touch touch) { TouchPadEvent event = new TouchPadEvent(); event.sx = touch.sx; event.sy = touch.sy; return event; }