Re: [w3c/gamepad] Add vendorId, productId, name attributes (PR #202)

@marcoscaceres commented on this pull request.



> +          <dfn>productId</dfn> attribute
+        </dt>
+        <dd>
+          The product identifier assigned by the device vendor, or `null` if
+          the gamepad has no product identifier or it is not available.
+        </dd>
+        <dt>
+          <dfn>name</dfn> attribute
+        </dt>
+        <dd>
+          <p>
+            A human-readable identifier for the gamepad. The exact content of
+            the {{Gamepad/name}} string is left unspecified. The [=user agent=]
+            MAY use a product name string provided by the device firmware. The
+            {{Gamepad/name}} MUST NOT be the empty string and MUST NOT include
+            unique identifiers like serial numbers or Bluetooth device

ok, yeah, that makes sense. I was more thinking about discouraging implementers from putting weird hex numbers etc. that would then end up being presented to users (which would be meaningless for most users). The description does make it clear that that this is supposed to be an end-user facing string. 

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

Message ID: <w3c/gamepad/pull/202/review/2051112877@github.com>

Received on Saturday, 11 May 2024 07:09:40 UTC