KtxInputAdapter

interface KtxInputAdapter : InputProcessor

Wrapping interface around com.badlogic.gdx.InputProcessor. Provides empty implementations of all methods, making them optional to implement.

Functions

Link copied to clipboard
open override fun keyDown(keycode: Int): Boolean
Link copied to clipboard
open override fun keyTyped(character: Char): Boolean
Link copied to clipboard
open override fun keyUp(keycode: Int): Boolean
Link copied to clipboard
open override fun mouseMoved(screenX: Int, screenY: Int): Boolean
Link copied to clipboard
open override fun scrolled(amountX: Float, amountY: Float): Boolean
Link copied to clipboard
open override fun touchCancelled(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean

Calls InputProcessor.touchUp for consistency with libGDX 1.11.0 and older. Override for custom handling.

Link copied to clipboard
open override fun touchDown(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean
Link copied to clipboard
open override fun touchDragged(screenX: Int, screenY: Int, pointer: Int): Boolean
Link copied to clipboard
open override fun touchUp(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean