-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: enumerate simple devices #418
base: master
Are you sure you want to change the base?
Conversation
Right now, in hid_open it is checked if the connected devices have "HIDClass" driver name. This is true for composite devices, but some simple HID devices only have "Mouse" or "Keyboard" driver name. With this change, one can enumerate and open these devices. Signed-off-by: Kubicz, Filip <[email protected]>
One of devices that cannot be opened is Dell MS116t, but any mouse which is not part of composite device should be affected. |
The driver name in question is received from |
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <[email protected]>
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <[email protected]>
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <[email protected]>
this is useful. |
@iwpz I had similar situation. I turned out I could enumerate my device only when some other equipment (headphones) were attached! |
DLL files with included fix signal11/hidapi#418 Signed-off-by: Kubicz, Filip <[email protected]>
DLL is a HIDAPI C library compiled with Visual Studio 2017 with fix which enables sending/receiving feature requests on devices claimed by Windows such as mouse or keyboard: https://github.com/signal11/hidapi/pull/335/files For 64-bit Python interpreter a 64-bit DLL library is needed. It is also provided and will be loaded automatically if the program cannot load 32-bit library. DLL files also include a fix for enumeration and opening of non-composite HID devices: signal11/hidapi#418 DLLs are in "Release" version so they do not require Windows debug libraries from user. Signed-off-by: Kubicz, Filip <[email protected]>
Right now, in hid_open it is checked if the connected devices have
"HIDClass" driver name. This is true for composite devices, but some
simple HID devices only have "Mouse" or "Keyboard" driver name.
With this change, one can enumerate and open these devices.
Signed-off-by: Kubicz, Filip [email protected]