Package org.oscim.gdx

Class MotionHandler

  • All Implemented Interfaces:
    com.badlogic.gdx.InputProcessor

    public class MotionHandler
    extends org.oscim.event.MotionEvent
    implements com.badlogic.gdx.InputProcessor
    • 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
      MotionHandler​(org.oscim.map.Map map)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.oscim.event.MotionEvent copy()  
      int getAction()  
      int getPointerCount()  
      long getTime()  
      float getX()  
      float getX​(int idx)  
      float getY()  
      float getY​(int idx)  
      boolean keyDown​(int keycode)  
      boolean keyTyped​(char character)  
      boolean keyUp​(int keycode)  
      boolean mouseMoved​(int screenX, int screenY)  
      void recycle()  
      boolean scrolled​(int amount)  
      boolean touchDown​(int screenX, int screenY, int pointer, int button)  
      boolean touchDragged​(int screenX, int screenY, int pointer)  
      boolean touchUp​(int screenX, int screenY, int pointer, int button)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MotionHandler

        public MotionHandler​(org.oscim.map.Map map)
    • Method Detail

      • getAction

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

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

        public float getY()
        Specified by:
        getY 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​(int idx)
        Specified by:
        getY 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
      • keyDown

        public boolean keyDown​(int keycode)
        Specified by:
        keyDown in interface com.badlogic.gdx.InputProcessor
      • keyUp

        public boolean keyUp​(int keycode)
        Specified by:
        keyUp in interface com.badlogic.gdx.InputProcessor
      • keyTyped

        public boolean keyTyped​(char character)
        Specified by:
        keyTyped in interface com.badlogic.gdx.InputProcessor
      • touchDown

        public boolean touchDown​(int screenX,
                                 int screenY,
                                 int pointer,
                                 int button)
        Specified by:
        touchDown in interface com.badlogic.gdx.InputProcessor
      • touchUp

        public boolean touchUp​(int screenX,
                               int screenY,
                               int pointer,
                               int button)
        Specified by:
        touchUp in interface com.badlogic.gdx.InputProcessor
      • touchDragged

        public boolean touchDragged​(int screenX,
                                    int screenY,
                                    int pointer)
        Specified by:
        touchDragged in interface com.badlogic.gdx.InputProcessor
      • mouseMoved

        public boolean mouseMoved​(int screenX,
                                  int screenY)
        Specified by:
        mouseMoved in interface com.badlogic.gdx.InputProcessor
      • scrolled

        public boolean scrolled​(int amount)
        Specified by:
        scrolled in interface com.badlogic.gdx.InputProcessor