简体   繁体   English

Javascript访问usb HID(usb游戏控制器)

[英]Javascript to access usb HID (usb game controller)

Im looking to use Javascript to read events from a usb device other than a keyboard or mouse. 我希望使用Javascript从键盘或鼠标以外的USB设备读取事件。 Specifically, I want to use a usb gaming controller to read events. 具体来说,我想使用USB游戏控制器来读取事件。 If this isnt possible with Javascript, is there anything else thats on the browser and client side that would allow me to do this? 如果使用Javascript无法做到这一点,那么浏览器和客户端是否还有其他内容可以让我这样做? Im not above having the user accept permission for something, install a plugin, or limit them to a particular browser. 我不是让用户接受某些东西的许可,安装插件或将它们限制在特定的浏览器。

Thanks in advance 提前致谢

出于这个原因,您可以使用存在的Gamepad API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM