Input.KeyEvent, Input.TouchEvent
Modifier and Type | Field and Description |
---|---|
(package private) AccelerometerHandler |
accelHandler |
(package private) KeyboardHandler |
keyHandler |
(package private) TouchHandler |
touchHandler |
Constructor and Description |
---|
AndroidInput(Context context,
View view,
float scaleX,
float scaleY) |
Modifier and Type | Method and Description |
---|---|
float |
getAccelX() |
float |
getAccelY() |
float |
getAccelZ() |
java.util.List<Input.KeyEvent> |
getKeyEvents() |
java.util.List<Input.TouchEvent> |
getTouchEvents() |
int |
getTouchX(int pointer) |
int |
getTouchY(int pointer) |
boolean |
isKeyPressed(int keyCode) |
boolean |
isTouchDown(int pointer) |
AccelerometerHandler accelHandler
KeyboardHandler keyHandler
TouchHandler touchHandler
public AndroidInput(Context context, View view, float scaleX, float scaleY)
public boolean isKeyPressed(int keyCode)
isKeyPressed
in interface Input
public boolean isTouchDown(int pointer)
isTouchDown
in interface Input
public java.util.List<Input.TouchEvent> getTouchEvents()
getTouchEvents
in interface Input
public java.util.List<Input.KeyEvent> getKeyEvents()
getKeyEvents
in interface Input