gamepadconnected event

Fires when a gamepad device is connected or activated.

Syntax

addEventListener Method object.addEventListener("gamepadconnected", handler, useCapture)

 

Event handler parameters

eventHandler [in]

Type: GamepadEvent

Remarks

If a gamepad is already connected when a page or app is loaded, the gamerpadconnected event is fired the first time you use the gamepad device.

See also

window
gamepaddisconnected event
GamepadEvent object

 

 

Show: