Maybe you can read up on USB-HID
. Wikipedia:
The USB human interface device class (USB HID class) is a part of the USB specification for computer peripherals: it specifies a device class (a type of computer hardware) for human interface devices such as keyboards, mice, game controllers and alphanumeric display devices.
Here are some references:
- USB HID (Human Interface Device)
node-hid
- AccessUSB HID
devices from node.jsDepthJS
: 'Allows any web page to interact with the Microsoft Kinect using Javascript'.- A related Stackoverflow question: Write data to USB HID using Javascript, HTML5, or any cross platform language (supports Android)