Skip to content

Commit

Permalink
Add missing steps in getGamepads
Browse files Browse the repository at this point in the history
Fixes #204
  • Loading branch information
nondebug committed May 10, 2024
1 parent 471b047 commit 3d70962
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1681,8 +1681,8 @@ <h3>
The {{Navigator/getGamepads()}} method steps are:
</p>
<ol>
<li>Let |doc| be the [=current global object=]'s [=associated
`Document`=].
<li>Let |doc:Document?| be the [=current global object=]'s
[=associated `Document`=].
</li>
<li>If |doc| is `null` or |doc| is not [=Document/fully active=],
then return an empty [=list=].
Expand All @@ -1697,6 +1697,8 @@ <h3>
<li>Let |now:DOMHighResTimeStamp| be the [=current high resolution
time=].
</li>
<li>Let |gamepads:sequence&lt;Gamepad?&gt;| be an empty [=list=].
</li>
<li>[=list/For each=] |gamepad:Gamepad| of
[=this=].{{Navigator/[[gamepads]]}}:
<ol>
Expand All @@ -1709,6 +1711,8 @@ <h3>
</li>
</ol>
</li>
<li>[=list/Append=] |gamepad| to |gamepads|.
</li>
</ol>
</li>
<li>Return |gamepads|.
Expand Down

0 comments on commit 3d70962

Please sign in to comment.