Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft