GestureController
class GestureController(input: Input, var tapWidth: Float = 20.0f, var tapHeight: Float = tapWidth, var tapCountInterval: Duration = 400.milliseconds, var longPressDuration: Duration = 1100.milliseconds, var maxFlingDuration: Duration = Duration.INFINITE, var processor: GestureProcessor) : InputProcessor
An InputProcessor that handles input events and emits gesture related events such as flinging, panning, zooming, and pinching and sends them to a GestureProcessor. Based off of libGDX GestureDetector.
Author
Colton Daily
Constructors
Link copied to clipboard
fun GestureController(input: Input, tapWidth: Float = 20.0f, tapHeight: Float = tapWidth, tapCountInterval: Duration = 400.milliseconds, longPressDuration: Duration = 1100.milliseconds, maxFlingDuration: Duration = Duration.INFINITE, setup: GestureProcessorBuilder.() -> Unit)
Link copied to clipboard
fun GestureController(input: Input, tapWidth: Float = 20.0f, tapHeight: Float = tapWidth, tapCountInterval: Duration = 400.milliseconds, longPressDuration: Duration = 1100.milliseconds, maxFlingDuration: Duration = Duration.INFINITE, processor: GestureProcessor)
Functions
Link copied to clipboard
Invoked when a GameButton is initially pressed on a GamepadInfo.
Link copied to clipboard
Invoked when a GameButton is released on a GamepadInfo.
Link copied to clipboard
Invoked when a GameStick is moved on a GamepadInfo.
Link copied to clipboard
Invoked when a GameButton that is considered a trigger is changed / moved.
Link copied to clipboard
Invoked when the mouse is moved.
Link copied to clipboard