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

@marcoscaceres commented on this pull request.



> +    <section data-dfn-for="GamepadTouch">
+      <h2>
+        <dfn>GamepadTouch</dfn> Interface
+      </h2>
+      <p>
+        This interface defines a single touch event on a gamepad device that
+        supports input. The event consists of a touch id that uniquely
+        identifies the touch point from the time the input medium (e.g. finger,
+        stylus, etc) makes contact with the touch device, up to the time the
+        input medium is no longer making contact with the touch device.
+      </p>
+      <pre class="idl">
+        [Exposed=Window, SecureContext]
+        interface GamepadTouch {
+          readonly attribute unsigned long touchId;
+          readonly attribute octet surfaceId;

This seems confusing... wouldn't it be better is gamepad had an unordered touch surface map with named surfaces? Could that be a thing? 

```JS
const trackpad = gamepad.touchSufaces.get("trackpad"); 
```

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

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

Received on Friday, 10 May 2024 03:13:43 UTC