Droydn
Droydn

Reputation: 1067

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. Specifically, I want to use a usb gaming controller to read events. If this isnt possible with Javascript, is there anything else thats on the browser and client side that would allow me to do this? Im not above having the user accept permission for something, install a plugin, or limit them to a particular browser.

Thanks in advance

Upvotes: 4

Views: 4344

Answers (1)

ZER0
ZER0

Reputation: 25322

You can use the Gamepad API that exists for this very reason.

Upvotes: 4

Related Questions