pressButton(button: TButton): void

Press a button virtually.

sincev3001.0

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

Misc