InputProcessor. You can derive from this and only override what you are interested in.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | keyDown(int keycode)
Implements com. Called when a key was pressed |
| public boolean | keyTyped(char character)
Implements com. Called when a key was typed |
| public boolean | |
| public boolean | mouseMoved(int screenX, int screenY)
Implements com. Called when the mouse was moved without any buttons being pressed. |
| public boolean | scrolled(float amountX, float amountY)
Implements com. Called when the mouse wheel was scrolled. |
| public boolean | touchCancelled(int screenX, int screenY, int pointer, int button)
Implements com. Called when the touch gesture is cancelled. |
| public boolean | touchDown(int screenX, int screenY, int pointer, int button)
Implements com. Called when the screen was touched or a mouse button was pressed. |
| public boolean | touchDragged(int screenX, int screenY, int pointer)
Implements com. Called when a finger or the mouse was dragged. |
| public boolean | touchUp(int screenX, int screenY, int pointer, int button)
Implements com. Called when a finger was lifted or a mouse button was released. |
| InputAdapter | back to summary |
|---|---|
| public InputAdapter() | |
| keyDown | back to summary |
|---|---|
| public boolean keyDown(int keycode) Implements com. Doc from com. Called when a key was pressed | |
| keyTyped | back to summary |
|---|---|
| public boolean keyTyped(char character) Implements com. Doc from com. Called when a key was typed | |
| keyUp | back to summary |
|---|---|
| public boolean keyUp(int keycode) Implements com. Doc from com. Called when a key was released | |
| mouseMoved | back to summary |
|---|---|
| public boolean mouseMoved(int screenX, int screenY) Implements com. Doc from com. Called when the mouse was moved without any buttons being pressed. Will not be called on iOS.
| |
| scrolled | back to summary |
|---|---|
| public boolean scrolled(float amountX, float amountY) Implements com. Doc from com. Called when the mouse wheel was scrolled. Will not be called on iOS.
| |
| touchCancelled | back to summary |
|---|---|
| public boolean touchCancelled(int screenX, int screenY, int pointer, int button) Implements com. Doc from com. Called when the touch gesture is cancelled. Reason may be from OS interruption to touch becoming a large surface such as
the user cheek). Relevant on Android and iOS only. The button parameter will be | |
| touchDown | back to summary |
|---|---|
| public boolean touchDown(int screenX, int screenY, int pointer, int button) Implements com. Doc from com. Called when the screen was touched or a mouse button was pressed. The button parameter will be | |
| touchDragged | back to summary |
|---|---|
| public boolean touchDragged(int screenX, int screenY, int pointer) Implements com. Doc from com. Called when a finger or the mouse was dragged. | |
| touchUp | back to summary |
|---|---|
| public boolean touchUp(int screenX, int screenY, int pointer, int button) Implements com. Doc from com. Called when a finger was lifted or a mouse button was released. The button parameter will be | |