Package org.oscim.gdx
Class GdxMotionEvent
java.lang.Object
org.oscim.event.MotionEvent
org.oscim.gdx.GdxMotionEvent
public class GdxMotionEvent
extends org.oscim.event.MotionEvent
-
Field Summary
Fields inherited from class org.oscim.event.MotionEvent
ACTION_CANCEL, ACTION_DOWN, ACTION_MASK, ACTION_MOVE, ACTION_POINTER_DOWN, ACTION_POINTER_INDEX_MASK, ACTION_POINTER_INDEX_SHIFT, ACTION_POINTER_UP, ACTION_UP -
Constructor Summary
ConstructorsConstructorDescriptionGdxMotionEvent(int action, float x, float y) GdxMotionEvent(int action, float x, float y, int button) -
Method Summary
-
Constructor Details
-
GdxMotionEvent
public GdxMotionEvent(int action, float x, float y) -
GdxMotionEvent
public GdxMotionEvent(int action, float x, float y, int button)
-
-
Method Details
-
getButton
public int getButton() -
getAction
public int getAction()- Specified by:
getActionin classorg.oscim.event.MotionEvent
-
getPointerCount
public int getPointerCount()- Specified by:
getPointerCountin classorg.oscim.event.MotionEvent
-
copy
public org.oscim.event.MotionEvent copy()- Specified by:
copyin classorg.oscim.event.MotionEvent
-
recycle
public void recycle()- Specified by:
recyclein classorg.oscim.event.MotionEvent
-
getTime
public long getTime()- Specified by:
getTimein classorg.oscim.event.MotionEvent
-
getX
public float getX()- Specified by:
getXin classorg.oscim.event.MotionEvent
-
getX
public float getX(int idx) - Specified by:
getXin classorg.oscim.event.MotionEvent
-
getY
public float getY()- Specified by:
getYin classorg.oscim.event.MotionEvent
-
getY
public float getY(int idx) - Specified by:
getYin classorg.oscim.event.MotionEvent
-