Re: [w3c/gamepad] id field in gamepad might have a persistent identifier? (#73)

Some related issues:
https://github.com/w3c/gamepad/issues/65
https://github.com/w3c/gamepad/issues/9
https://github.com/w3c/gamepad/issues/7

In general the `id` field is terrible (sorry). We should expose the vendor + product IDs in separate fields if available, and the controller name in its own field. The product id that MDN talks about is in terms of [the USB device desciptor](https://beyondlogic.org/usbnutshell/usb5.shtml#DeviceDescriptors), where AFAICT it is intended to be the product name. For the purposes of the Gamepad API we simply want "a human-readable string that describes the device so that users can distinguish multiple connected devices".

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/issues/73#issuecomment-393927179

Received on Friday, 1 June 2018 16:04:37 UTC