Input.Buttons, Input.Keys, Input.OnscreenKeyboardType, Input.Orientation, Input.Peripheral, Input.TextInputListener| Constructor and Description |
|---|
AbstractInput() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCatchBackKey() |
boolean |
isCatchKey(int keycode) |
boolean |
isCatchMenuKey() |
boolean |
isKeyJustPressed(int key)
Returns whether the key has just been pressed.
|
boolean |
isKeyPressed(int key)
Returns whether the key is pressed.
|
void |
setCatchBackKey(boolean catchBack) |
void |
setCatchKey(int keycode,
boolean catchKey)
Sets whether the given key on Android or GWT should be caught.
|
void |
setCatchMenuKey(boolean catchMenu) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelVibrate, getAccelerometerX, getAccelerometerY, getAccelerometerZ, getAzimuth, getCurrentEventTime, getDeltaX, getDeltaX, getDeltaY, getDeltaY, getGyroscopeX, getGyroscopeY, getGyroscopeZ, getInputProcessor, getMaxPointers, getNativeOrientation, getPitch, getPressure, getPressure, getRoll, getRotation, getRotationMatrix, getTextInput, getTextInput, getX, getX, getY, getY, isButtonJustPressed, isButtonPressed, isCursorCatched, isPeripheralAvailable, isTouched, isTouched, justTouched, setCursorCatched, setCursorPosition, setInputProcessor, setOnscreenKeyboardVisible, setOnscreenKeyboardVisible, vibrate, vibratepublic boolean isKeyPressed(int key)
InputisKeyPressed in interface Inputkey - The key code as found in Input.Keys.public boolean isKeyJustPressed(int key)
InputisKeyJustPressed in interface Inputkey - The key code as found in Input.Keys.public boolean isCatchBackKey()
isCatchBackKey in interface Inputpublic void setCatchBackKey(boolean catchBack)
setCatchBackKey in interface InputcatchBack - whether to catch the back buttonpublic boolean isCatchMenuKey()
isCatchMenuKey in interface Inputpublic void setCatchMenuKey(boolean catchMenu)
setCatchMenuKey in interface InputcatchMenu - whether to catch the menu buttonpublic void setCatchKey(int keycode,
boolean catchKey)
InputsetCatchKey in interface Inputkeycode - keycode to catchcatchKey - whether to catch the given keycodepublic boolean isCatchKey(int keycode)
isCatchKey in interface Inputkeycode - keycode to check if caughtCopyright © 2021. All rights reserved.