textmode.js / Textmodifier / gamepadButtonPressed
Method: gamepadButtonPressed()
ts
gamepadButtonPressed(callback): void;Register the single-callback handler for gamepad button press events.
This is a legacy-style single-callback shortcut for the 'gamepadButtonPressed' event.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | GamepadButtonEventHandler | Handler to run with gamepad button data when a button is pressed. |
Returns
void