Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 820 Bytes

File metadata and controls

40 lines (22 loc) · 820 Bytes

Touch(float, float, float, float)

Executes when a touch is detected.

on touch(out float screenX, out float screenY, const float TOUCH_STATE, const float TOUCH_FINGER) { }

Parameters

screenX

Modifiers: out

Type: float

The x coordinate of the touch (in pixels).

screenY

Modifiers: out

Type: float

The y coordinate of the touch (in pixels).

TOUCH_STATE

Modifiers: const

Type: float

One of TOUCH_STATE.

TOUCH_FINGER

Modifiers: const

Type: float

One of TOUCH_FINGER.