R
T

GamepadEventHookOn

testeddemo

Subscribe to a gamepad lifecycle event. Returns a stop function that removes the listener; it is also auto-removed when the owning scope is disposed.

Demo

Loading demo…

Signature

ts
export type GamepadEventHookOn = (listener: (index: number) => void) => VoidFunction;