diff --git a/index.html b/index.html index 2048375..a1d51dc 100644 --- a/index.html +++ b/index.html @@ -416,18 +416,19 @@

getGamepads
- Retrieve a snapshot of the data for the the currently connected and - interacted-with gamepads. Gamepads MUST only appear in the list if - they are currently connected to the user agent, and at least - one device has been interacted with by the user. If no devices have - been interacted with, devices MUST NOT appear in the list to avoid a - malicious page from fingerprinting the user. The length of the array - returned MUST be one more than the maximum index value of the Gamepad - objects returned in the array. The entries in the array MUST be the - set of Gamepad objects that are visible to the current page, with - each Gamepad present at the index in the array specified by its - {{Gamepad/index}} attribute. Array indices for which there is no - connected Gamepad with the corresponding index should return null. + Retrieve a snapshot of the data for the the currently connected + gamepads, as specified by user activation. Gamepads MUST only + appear in the list if they are currently connected to the + user agent, and at least one device has been identified through + user activation. If no devices have been interacted with, + devices MUST NOT appear in the list to avoid a malicious page from + fingerprinting the user. The length of the array returned MUST be one + more than the maximum index value of the Gamepad objects returned in + the array. The entries in the array MUST be the set of Gamepad + objects that are visible to the current page, with each Gamepad + present at the index in the array specified by its {{Gamepad/index}} + attribute. Array indices for which there is no connected Gamepad with + the corresponding index should return null.

The gamepad state returned from getGamepads() does not reflect disconnection or connection until after the @@ -738,6 +739,15 @@

+
+

+ User Activation +

+

+ User activation is defined as a Gamepad {{GamepadButton/pressed}} + attribute changing from false to true. +

+

The gamepadconnected event @@ -754,7 +764,7 @@

A user agent MUST dispatch this event type to indicate the user has connected a gamepad. If a gamepad was already connected when the page was loaded, the gamepadconnected event SHOULD be dispatched - when the user presses a button or moves an axis. + when user activation occurs.