hedgar2017 / loki-hidriver

Virtual mouse and keyboard driver for Windows 7 and higher
MIT License
234 stars 97 forks source link

HID devices are not classified automatically in Windows 7 #2

Open hedgar2017 opened 6 years ago

hedgar2017 commented 6 years ago

I have finished the driver and now it works perfectly, but only on Win8.1 and Win10. On Win7 it starts, but when it comes to recognizing HID devices specified in HID report descriptor, Win7 puts them into the 'Other devices category'.

Device manager screenshot

The two yellowed devices are the mouse and keyboard, and the third is a fake HID device I use to send output reports (because mouse and keyboard are opened by HID services exclusively).

Win8.1 and Win10 do everything right and put each HID device in its category (Mouse, Keyboard, and HID for the 3rd fake HID device).

Note: now there is the 4th HID device (similar to the 3rd, but the 3rd is for mouse and the 4th is for keyboard).

The original MSDN topic.

IamHuskar commented 5 years ago

I have finished the driver and now it works perfectly, but only on Win8.1 and Win10. On Win7 it starts, but when it comes to recognizing HID devices specified in HID report descriptor, Win7 puts them into the 'Other devices category'.

Device manager screenshot

The two yellowed devices are the mouse and keyboard, and the third is a fake HID device I use to send output reports (because mouse and keyboard are opened by HID services exclusively).

Win8.1 and Win10 do everything right and put each HID device in its category (Mouse, Keyboard, and HID for the 3rd fake HID device).

Note: now there is the 4th HID device (similar to the 3rd, but the 3rd is for mouse and the 4th is for keyboard).

The original MSDN topic.

did you solve the problem? it doesn't work on windows 7.

hedgar2017 commented 5 years ago

@IamHuskar I did not, but it does work on Windows 7, if you manually specify drivers for the mouse and keyboard devices. That is, HID-compliant mouse for one unknown device, and HID Keyboard Device for the other one. The mouse device has lesser index than that of the keyboard (Col01 or Col02) - just to make sure you can easily distinguish them.

dugujiutian2 commented 5 years ago

Can you send me a win10 64-bit driver installation file?

hedgar2017 commented 5 years ago

@dugujiutian2 I created the repository with the release files