denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.41k stars 5.37k forks source link

Add support for HID API. #13893

Open n-nougator opened 2 years ago

kitsonk commented 2 years ago

A simple title for an issue is not really a suggestion. If you really want it to be considered, more information is needed, like what existing Web Platform APIs you would want us to consider implementing, or how it is exposed in other languages like Rust, Go, Python, etc. As it stands at the moment it is unactionable.

crowlKats commented 2 years ago

@kitsonk I believe they are referring the WebHID API, given context of a small discussion in the discord server

kitsonk commented 2 years ago

Well, that would have been useful information to provide in the issue.

MDN: https://developer.mozilla.org/en-US/docs/Web/API/HID

This is only support in Chromium based browsers.

This is unlikely to happen in the near future, because like web USB (see #9523) and web serial (see #9710) we currently lack a reliable way to test them as part of a CI process.

LeoDog896 commented 1 year ago

Looking through the hidapi C library, they don't automatically test it? It seems that the tests are essentially "plug in a real HID device, and make a tool to automatically test it when it's plugged in".