Touch

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

Represents the state of a touch

Parameters

slot

slot id for the touch

cursorX

x coordinate of this touch

cursorY

y coordinate of this touch

isTouching

True if screen is touched at this coordinate

Constructors

Link copied to clipboard
fun Touch(slot: Int, cursorX: Int = 0, cursorY: Int = 0, isTouching: Boolean = false)

Properties

Link copied to clipboard
var cursorX: Int = 0
Link copied to clipboard
var cursorY: Int = 0
Link copied to clipboard
var isTouching: Boolean = false
Link copied to clipboard
val slot: Int