Class Touch


  • public class Touch
    extends java.lang.Object
    A Touch property.
    • Method Detail

      • byNativeEvent

        public static java.util.Map<java.lang.Integer,​Touch> byNativeEvent​(android.view.MotionEvent event)
        Generates a touch map from native android MotionEvent.
      • fromPool

        public static Touch fromPool​(int id)
      • toPool

        public static void toPool​(Touch touch)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • dispose

        public void dispose()
      • getId

        public int getId()
      • getIndex

        public int getIndex()
      • getX

        public float getX()
      • getY

        public float getY()
      • getLastX

        public float getLastX()
      • getLastY

        public float getLastY()
      • getPressure

        public float getPressure()
      • getDownTime

        public long getDownTime()
      • duration

        public long duration()
      • deltaTime

        public long deltaTime()