(Windows 10) Chrome.hid.getDevices doesn't work if the device is a hid usb keyboard
See original GitHub issueCould you change the filter to detect the hid devices? I have download the hidapi project and in the hid_enumerate function in hid.c you can remove the line if (strcmp(driver_name, "HIDClass")
(https://github.com/signal11/hidapi/issues/290) and after that the device is detected and working well. Could you do something to solve that? You could do an only search via vendorid, serialnumber… Or including the same filter than usb class (the chrome.usb.getDevices detects the device well) … Or open the device via path hid_open_path (http://www.signal11.us/oss/hidapi/hidapi/doxygen/html/group__API.html)? @reillyeon @beaufortfrancois
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
(Windows 10) Chrome.hid.getDevices doesn't work if ... - GitHub
Opened a request to add a function to connect via local device path as do other hid devices #466. 1
Read more >Connecting to uncommon HID devices - Chrome Developers
Connecting to uncommon HID devices. The WebHID API allows websites to access alternative auxiliary keyboards and exotic gamepads. Published on ...
Read more >Google Chrome chrome.usb / chrome.hid locked device
Anything that acts as a keyboard or mouse is explicitly prohibited from being accessible via the chrome.hid.
Read more >Missing HID Keyboard Devices and Unknown USB Decive
Hello all, About a couple of weeks ago, my laptop (ASUS Zephyrus G15 Model GU502GV) started experiencing a reoccurring issue where the ...
Read more >411899 - [HID] chrome.hid.getDevices returns empty array first ...
Issue 411899: [HID] chrome.hid.getDevices returns empty array first time it's called · 1. Open a shell · 2. sudo tailf /var/log/messages · 3....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Opened a request to add a function to connect via local device path as do other hid devices https://github.com/GoogleChrome/chrome-app-samples/issues/466.
I have found that if you are doing
strcmp(driver_name, "HIDClass")
… In windows 10 the driver name is the name instead than the driver class. @reillyeonhttps://github.com/signal11/hidapi/pull/291/files/f453bda38ff17ea28b7b1d59afd8d09e74e5efb5#diff-8162c58f4630fb0f3a6a21f2e094e883L354