Re: [w3c/gamepad] Fold touchEvents from extensions.html into index.html (PR #198)

@gabrielsanbrito commented on this pull request.



> +                      nextTouchId.
+                        <p class="note" title=
+                        "Touch ids are relative to the Gamepad">
+                          If the Gamepad has multiple touch surfaces the touch
+                          id will be unique across surfaces.
+                        </p>
+                      </li>
+                    </ol>
+                  </li>
+                  <li>Let |position| be a [=new=] {{DOMPoint}} with `x`
+                  initialized to device X coordinate relative to the device
+                  touch surface and normalized to [-1.0,1.0] where -1.0 is the
+                  leftmost coordinate and 1.0 is the rightmost coordinate and
+                  `y` initialized to the device touch surface and normalized to
+                  [-1.0,1.0] where -1.0 is the leftmost coordinate and 1.0 is
+                  the rightmost coordinate.

`|position|` is declared and not used. Should we write something like "Set |touch|.{{GamepadTouch/position}} to |position|"?

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

Message ID: <w3c/gamepad/pull/198/review/2616519886@github.com>

Received on Friday, 14 February 2025 00:54:48 UTC