Function

onTouchStart

(action: (pos: Vec2, t: Touch) => void): KEventController

Register an event that runs when a touch starts.

param action- The function to run when the event is triggered.

returns The event controller.

since v2000.1

group Input

kaplay logo

Layer

Miscalenous