pressButton(btn: TButton): void

Press a button virtually.

parambtn- The button to press.

// press "jump" button
pressButton("jump"); // triggers onButtonPress, starts onButtonDown
releaseButton("jump"); // triggers onButtonRelease, stops onButtonDown

sincev3001.0

kaplay logo

Misc

Layer