releaseButton(btn: TButton): void

Release a button virtually.

parambtn- The button to release.

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

sincev3001.0