Skip to content

textmode.js / Textmodifier / gamepadDisconnected

Method: gamepadDisconnected()

ts
gamepadDisconnected(callback): void;

Register the single-callback handler for gamepad disconnection events.

This is a legacy-style single-callback shortcut for the 'gamepadDisconnected' event.

Parameters

ParameterTypeDescription
callbackGamepadConnectionEventHandlerHandler to run with gamepad connection data when a controller disconnects.

Returns

void

Example