ITouchInterface

interface ITouchInterface

Types

Link copied to clipboard
interface Settings
Link copied to clipboard
data class Swipe(val slot: Int, val x1: Int, val y1: Int, val x2: Int, val y2: Int)

Wrapper class to encapsulate data describing a swipe

Link copied to clipboard
data class Touch(val slot: Int, var cursorX: Int = 0, var cursorY: Int = 0, var isTouching: Boolean = false)

Represents the state of a touch

Functions

Link copied to clipboard
abstract fun eventSync()

Commits the touch events

Link copied to clipboard
abstract fun gesture(swipes: List<ITouchInterface.Swipe>, duration: Millis)

Send a multi swipe gesture event

Link copied to clipboard
abstract fun pinch(x: Int, y: Int, r1: Int, r2: Int, angle: Double, duration: Millis)

Send a pinch event

Link copied to clipboard
open fun swipe(swipe: ITouchInterface.Swipe, duration: Millis)

Send a swipe event

Link copied to clipboard
abstract fun tap(slot: Int, x: Int, y: Int)

Send a tap to the given coordinates

Link copied to clipboard
abstract fun touchDown(slot: Int)

Sends a touch down event

Link copied to clipboard
abstract fun touchMove(slot: Int, x: Int, y: Int)

Sends a touch move event

Link copied to clipboard
abstract fun touchUp(slot: Int)

Sends a touch up event

Properties

Link copied to clipboard

Settings for this touch interface

Link copied to clipboard

List of touches on the device

Inheritors

Link copied to clipboard