Package com.nevergarden.myna.events
Class Touch
- java.lang.Object
-
- com.nevergarden.myna.events.Touch
-
public class Touch extends java.lang.Object
A Touch property.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.Integer,Touch>
byNativeEvent(android.view.MotionEvent event)
Generates a touch map from native android MotionEvent.long
deltaTime()
void
dispose()
long
duration()
static Touch
fromPool(int id)
long
getDownTime()
int
getId()
int
getIndex()
float
getLastX()
float
getLastY()
TouchPhase
getPhase()
float
getPressure()
float
getX()
float
getY()
static void
toPool(Touch touch)
java.lang.String
toString()
-
-
-
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 classjava.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()
-
getPhase
public TouchPhase getPhase()
-
getPressure
public float getPressure()
-
getDownTime
public long getDownTime()
-
duration
public long duration()
-
deltaTime
public long deltaTime()
-
-