Re: [w3ctag/design-reviews] WebHID API (Human Interface Device) (#370)

> Could values like "english-linear" be called "imperial-linear" or similar, as there are English speaking countries that use SI units.

Sure, let's s/english/imperial/g

The names come from the USB HID spec but the exact strings aren't important.

> Alternatively, would it be possible for the API to simply expose SI units and do the conversion?

I don't think this is practical. The only values that would make sense to scale are Physical Minimum and Physical Maximum, which are "long" type because that's the type reported by the device. If we want to convert them, they need to be floating point and the converted values will stand out as obviously faked. I think it would be better to expose the information reported by the device without modification.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/370#issuecomment-635676650

Received on Thursday, 28 May 2020 23:52:04 UTC