[w3c/gamepad] Add -1 to the set of allowed indices (PR #158)

Closes https://github.com/immersive-web/webxr-gamepads-module/issues/27


The WebXR module constructs Gamepads that are not exposed via `navigator.getGamepads()`, this adds a `-1` value for `index` that can accomodate them.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/Manishearth/gamepad/pull/158.html" title="Last updated on Dec 28, 2021, 7:55 PM UTC (5133764)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/gamepad/158/da113e6...Manishearth:5133764.html" title="Last updated on Dec 28, 2021, 7:55 PM UTC (5133764)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/gamepad/pull/158

-- Commit Summary --

  * Add -1 to the set of allowed indices

-- File Changes --

    M index.html (9)

-- Patch Links --

https://github.com/w3c/gamepad/pull/158.patch
https://github.com/w3c/gamepad/pull/158.diff

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

Message ID: <w3c/gamepad/pull/158@github.com>

Received on Tuesday, 28 December 2021 19:55:50 UTC