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

Register an event that runs when a touch starts.

paramaction- The function to run when the event is triggered.

returnsThe event controller.

sincev2000.1

kaplay logo

Misc

Layer