Variables

read onlytouchIndex:Int

If the input is a touch input, this is the index of the touch. Otherwise it will be -1.

read onlybuttonId:Int

If the input is a mouse input, this is the id of the mouse button. Otherwise it will be -1.

read onlyx:Float

X coordinate of the input (relative to screen).

read onlyy:Float

Y coordinate of the input (relative to screen).

read onlyhits:Bool

Whether these info do hit the related visual. This is usually true, Except when we have touch/mouse up events outside of a visual that initially received a down event.