Esempio n. 1
0
 public static TouchPadEvent move(Touch touch) {
   TouchPadEvent event = new TouchPadEvent();
   event.dt = touch.dt;
   event.dx = touch.dx;
   event.dy = touch.dy;
   return event;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public static TouchPadEvent scroll(Touch touch) {
   TouchPadEvent event = new TouchPadEvent();
   event.sx = touch.sx;
   event.sy = touch.sy;
   return event;
 }