GestureProcessorBuilder

A builder class to create a GestureProcessor easily.

Author

Colton Daily

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun onFling(action: (velocityX: Float, velocityY: Float, pointer: Pointer) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onFlingHandle(action: (velocityX: Float, velocityY: Float, pointer: Pointer) -> Boolean)

Need to specify if the event is handled.

Link copied to clipboard
fun onLongPress(action: (screenX: Float, screenY: Float) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onLongPressHandle(action: (screenX: Float, screenY: Float) -> Boolean)

Need to specify if the event is handled.

Link copied to clipboard
fun onPan(action: (screenX: Float, screenY: Float, dx: Float, dy: Float) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onPanHandle(action: (screenX: Float, screenY: Float, dx: Float, dy: Float) -> Boolean)

Need to specify if the event is handled.

Link copied to clipboard
fun onPanStop(action: (screenX: Float, screenY: Float, pointer: Pointer) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onPanStopHandle(action: (screenX: Float, screenY: Float, pointer: Pointer) -> Boolean)

Need to specify if the event is handled.

Link copied to clipboard
fun onPinch(action: (initialPos1: Vec2f, initialPos2: Vec2f, pos1: Vec2f, pos2: Vec2f) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onPinchHandle(action: (initialPos1: Vec2f, initialPos2: Vec2f, pos1: Vec2f, pos2: Vec2f) -> Boolean)

Need to specify if the event is handled.

Link copied to clipboard
fun onPinchStop(action: () -> Unit)
Link copied to clipboard
fun onTap(action: (screenX: Float, screenY: Float, count: Int, pointer: Pointer) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onTapHandle(action: (screenX: Float, screenY: Float, count: Int, pointer: Pointer) -> Boolean)

Need to specify if the event is handled.

Link copied to clipboard
fun onTouchDown(action: (screenX: Float, screenY: Float, pointer: Pointer) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onTouchDownHandle(action: (screenX: Float, screenY: Float, pointer: Pointer) -> Boolean)

Need to specify if the event is handled.

Link copied to clipboard
fun onZoom(action: (initialDistance: Float, distance: Float) -> Unit)

Marks the event as unhandled by default.

Link copied to clipboard
fun onZoomHandle(action: (initialDistance: Float, distance: Float) -> Boolean)

Need to specify if the event is handled.