pressButton(btn: TButton): void
Press a button virtually.
param
btn- The button to press.
// press "jump" button pressButton("jump"); // triggers onButtonPress, starts onButtonDown releaseButton("jump"); // triggers onButtonRelease, stops onButtonDown
since
v3001.0