Re: [w3c/gamepad] Editorial: add a Model section (#136)

@marcoscaceres commented on this pull request.



> +        occur without user interaction.
+      </p>
+      <p>
+        The user agent MUST NOT expose information about connected gamepads
+        until a gamepad user gesture has been received from any connected
+        gamepad. The user gesture MUST be tracked independently for each gamepad
+        context. A <dfn>gamepad context</dfn> MUST be created when a page first
+        requests the current gamepad state or registers for gamepad connection
+        events. The gamepad context MUST be destroyed when the tab is closed or
+        navigates away from the current page. Reloading the current page MUST
+        NOT destroy the gamepad context.
+      </p>
+      <div class="issue">
+        <p>TODO: Integrate the gamepad context lifetime with the HTML spec.</p>
+     </div>
+        To register a user gesture, a gamepad context MUST be active. A gamepad

Determining "active" is effectively and algorithm, so we should specify it as such. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/136#pullrequestreview-1212824119
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/gamepad/pull/136/review/1212824119@github.com>

Received on Monday, 12 December 2022 02:13:28 UTC