Input#setInputProcessor(InputProcessor) method. It will be called each frame before the
call to ApplicationListener#render(). Each method returns a boolean in case you want to use this with the
InputMultiplexer to chain input processors.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether the input was processedone of the constants in keycode)Input.Called when a key was pressed |
| public boolean | Returns: whether the input was processedThe character character)Called when a key was typed |
| public boolean | Returns: whether the input was processedone of the constants in keycode)Input.Called when a key was released |
| public boolean | Returns: whether the input was processedCalled when the mouse was moved without any buttons being pressed. |
| public boolean | Returns: whether the input was processed.the horizontal scroll amount, negative or positive depending on the direction the wheel was scrolled. amountX, float the vertical scroll amount, negative or positive depending on the direction the wheel was scrolled. amountY)Called when the mouse wheel was scrolled. |
| public boolean | Returns: whether the input was processedthe pointer for the event. pointer, int the button button)Called when the touch gesture is cancelled. |
| public boolean | Returns: whether the input was processedThe x coordinate, origin is in the upper left corner screenX, int The y coordinate, origin is in the upper left corner screenY, int the pointer for the event. pointer, int the button button)Called when the screen was touched or a mouse button was pressed. |
| public boolean | Returns: whether the input was processedthe pointer for the event. pointer)Called when a finger or the mouse was dragged. |
| public boolean | Returns: whether the input was processedthe pointer for the event. pointer, int the button button)Called when a finger was lifted or a mouse button was released. |
| keyDown | back to summary |
|---|---|
| public boolean keyDown(int keycode) Called when a key was pressed
| |
| keyTyped | back to summary |
|---|---|
| public boolean keyTyped(char character) Called when a key was typed
| |
| keyUp | back to summary |
|---|---|
| public boolean keyUp(int keycode) Called when a key was released
| |
| mouseMoved | back to summary |
|---|---|
| public boolean mouseMoved(int screenX, int screenY) 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) 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) 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) 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) Called when a finger or the mouse was dragged.
| |
| touchUp | back to summary |
|---|---|
| public boolean touchUp(int screenX, int screenY, int pointer, int button) Called when a finger was lifted or a mouse button was released. The button parameter will be
| |