public class MotionHandler
extends org.oscim.event.MotionEvent
implements com.badlogic.gdx.InputProcessor
| Constructor and Description |
|---|
MotionHandler(org.oscim.map.Map map) |
| Modifier and Type | Method and 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) |
public int getAction()
getAction in class org.oscim.event.MotionEventpublic float getX()
getX in class org.oscim.event.MotionEventpublic float getY()
getY in class org.oscim.event.MotionEventpublic float getX(int idx)
getX in class org.oscim.event.MotionEventpublic float getY(int idx)
getY in class org.oscim.event.MotionEventpublic int getPointerCount()
getPointerCount in class org.oscim.event.MotionEventpublic org.oscim.event.MotionEvent copy()
copy in class org.oscim.event.MotionEventpublic void recycle()
recycle in class org.oscim.event.MotionEventpublic long getTime()
getTime in class org.oscim.event.MotionEventpublic boolean keyDown(int keycode)
keyDown in interface com.badlogic.gdx.InputProcessorpublic boolean keyUp(int keycode)
keyUp in interface com.badlogic.gdx.InputProcessorpublic boolean keyTyped(char character)
keyTyped in interface com.badlogic.gdx.InputProcessorpublic boolean touchDown(int screenX,
int screenY,
int pointer,
int button)
touchDown in interface com.badlogic.gdx.InputProcessorpublic boolean touchUp(int screenX,
int screenY,
int pointer,
int button)
touchUp in interface com.badlogic.gdx.InputProcessorpublic boolean touchDragged(int screenX,
int screenY,
int pointer)
touchDragged in interface com.badlogic.gdx.InputProcessorpublic boolean mouseMoved(int screenX,
int screenY)
mouseMoved in interface com.badlogic.gdx.InputProcessorpublic boolean scrolled(int amount)
scrolled in interface com.badlogic.gdx.InputProcessor