Package org.oscim.gdx

Class 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

      Constructors 
      Constructor Description
      GdxMotionEvent​(int action, float x, float y)  
      GdxMotionEvent​(int action, float x, float y, int button)  
    • Constructor Detail

      • GdxMotionEvent

        public GdxMotionEvent​(int action,
                              float x,
                              float y)
      • GdxMotionEvent

        public GdxMotionEvent​(int action,
                              float x,
                              float y,
                              int button)
    • Method Detail

      • getButton

        public int getButton()
      • getAction

        public int getAction()
        Specified by:
        getAction in class org.oscim.event.MotionEvent
      • getPointerCount

        public int getPointerCount()
        Specified by:
        getPointerCount in class org.oscim.event.MotionEvent
      • copy

        public org.oscim.event.MotionEvent copy()
        Specified by:
        copy in class org.oscim.event.MotionEvent
      • recycle

        public void recycle()
        Specified by:
        recycle in class org.oscim.event.MotionEvent
      • getTime

        public long getTime()
        Specified by:
        getTime in class org.oscim.event.MotionEvent
      • getX

        public float getX()
        Specified by:
        getX in class org.oscim.event.MotionEvent
      • getX

        public float getX​(int idx)
        Specified by:
        getX in class org.oscim.event.MotionEvent
      • getY

        public float getY()
        Specified by:
        getY in class org.oscim.event.MotionEvent
      • getY

        public float getY​(int idx)
        Specified by:
        getY in class org.oscim.event.MotionEvent