pressButton(button: TButton): void

Press a button virtually.

since

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

Misc