Package org.oscim.gdx

Class MotionHandler

java.lang.Object
org.oscim.event.MotionEvent
org.oscim.gdx.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

    Modifier and Type
    Method
    Description
    org.oscim.event.MotionEvent
     
    int
     
    int
     
    long
     
    float
     
    float
    getX(int idx)
     
    float
     
    float
    getY(int idx)
     
    boolean
    keyDown(int keycode)
     
    boolean
    keyTyped(char character)
     
    boolean
    keyUp(int keycode)
     
    boolean
    mouseMoved(int screenX, int screenY)
     
    void
     
    boolean
    scrolled(float amountX, float amountY)
     
    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 Details

    • MotionHandler

      public MotionHandler(org.oscim.map.Map map)
  • Method Details

    • 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(float amountX, float amountY)
      Specified by:
      scrolled in interface com.badlogic.gdx.InputProcessor