Motion
Get Motion

ReferenceScripting APIMotionEventspress

MotionEvents.press

property

A button of the pointer pressed (down) or let go: where (0 to 1), and which (0 the main one).

Namepress
Kindproperty of MotionEvents
Called asevents.press
Since0.3

Syntax

press: (x: number, y: number, button: number, down: boolean) => void