Tod Kurt

Results 368 comments of Tod Kurt

It looks like you're not checking if `device` actually exists before calling `device.on()`

I'm not sure what the issue is. I've never seen this particular problem. If this is keyboard, mouse, or other device the OS has a device driver for, it could...

Ah yes, I've used that library myself. In fact, there's a `test-ps3.js` example in the `node-hid/src` showing a simplified way of getting data from a DS3 controller. I believe Windows...

If the device acts like a HID keyboard, then you need to use standard UI events / keyboard reading techniques in Javascript/Node, and you will not be able to use...

Could you please describe more by what you mean by: > My goal is to not force a scan into a text field to act like a keyboard.

To read a keyboard (doesn't matter if it's a scanner or normal) in a Node process, you'd do something like this: https://www.cloudhadoop.com/nodejs-keystrokes-stdin/ But the terminal window has to have focus...

`node-hid` is just a thin wrapper on `hidapi`. I don't believe `hidapi` has access to USB interface names as HID works on both BLE and USB, and I'm unfamiliar with...

Yes, `node-hid` is just calling the `hidapi` function `hid_get_product_string()`, see: https://github.com/node-hid/node-hid/blob/master/src/HID.cc#L443

The API exists for `hid_get_indexed_string()` but the implementation only exists for Windows and libusb Linux (which is the lesser-used Linux impl, most people use the hidraw driver, and hidraw cannot...

In general, only one program can access a USB device at a time. I believe `hidapi` (the C library node-hid is just a wrapper on) enforces this more on Mac...