- From: Matt Reynolds <notifications@github.com>
- Date: Thu, 08 Jul 2021 11:54:57 -0700
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 8 July 2021 18:56:05 UTC
@nondebug commented on this pull request.
> + <li>Set |navigator|.{{Navigator/[[hasGamepadGesture]]}} to
+ `true`.
+ </li>
+ <li>[=list/For each=] |connectedGamepad:Gamepad?| of
+ |navigator|.{{Navigator/[[gamepads]]}}:
+ <ol>
+ <li>If |connectedGamepad| is not equal to `null`:
+ <ol>
+ <li>Set |connectedGamepad|.{{Gamepad/[[exposed]]}} to
+ `true`.
+ </li>
+ <li>Set |connectedGamepad|.{{Gamepad/[[timestamp]]}} to
+ |now|.
+ </li>
+ <li>If |gamepad|'s [=relevant global object=] is a
+ {{Window}} object, [=queue a global task=] on |gamepad|'s
I've added a fully active check so we won't try to fire events for non-fully-active Documents.
I removed the Window check since I think we'll implicitly make that check when trying to get the associated (or responsible) Document. If the global object isn't a Window then it won't have a Document. Is that correct?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/151#discussion_r666443516
Received on Thursday, 8 July 2021 18:56:05 UTC