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

@marcoscaceres commented on this pull request.



> +            <ol>
+              <li>Let |surfaceId:unsigned long| be the current surface
+              enumeration index.
+              </li>
+              <li>If the touch surface exposes maximum surface dimensions in
+              device units, then set |touch|.{{GamepadTouch/surfaceDimensions}}
+              to a {{DOMRect}} with `width` and `height` initialized to the
+              maximum X and Y dimensions on the touch surface in device units.
+              </li>
+              <li>Repeat the following steps for each active touch point
+              reported by the |gamepad| for the current touch surface.
+                <ol>
+                  <li>Let |nextTouchId:unsigned long| be the next available
+                  touchId for the |gamepad|.
+                  </li>
+                  <li>Let |touch:GamepadTouch| be a {{GamepadTouch}}.

```suggestion
                  <li>Let |touch:GamepadTouch| be a newly created {{GamepadTouch}} object.
```

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

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

Received on Friday, 10 January 2025 00:45:28 UTC