Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-HID Mouse driver on NT

Tags:

driver

mouse

hid

nt

I'm looking to write a custom touchpad driver for my laptop, as its support under Windows is abysmal. I have the protocol figured out and I'm ready to go ahead and implement it, but I'm a bit confused as to how to go about it. It's a multitouch touchpad, so I'd like to support the Windows Touch interfaces in addition to standard mouse support, but the examples in the WDK (Elotouch being the most relevant one) only show HID support. In my Googling around, I discovered someone mentioning that the proper way to handle this is to write a shim driver that will expose HID from the low-level protocol, but I couldn't find good information on where to start with that.

What examples (WDK or otherwise) should I take a look at and is the HID shim the right way to go about this? I'm looking to target Vista+ at the least, XP would be nice as well.

Thanks

Edit: A bit of clarification. The touchpad is USB but non-HID. Also, if the HID shim is the best way to go, can I use KMDF there, or do I have to go WDM? Most of my experience is WDM, but I'm not sure which way to go.

like image 484
Serafina Brocious Avatar asked Nov 06 '22 19:11

Serafina Brocious


1 Answers

There is a msdn article about how you can map a non-HID device to a HID device as part of the Windows Touch Overview.

Also don't miss the general driver developing tips.

like image 200
John Smithers Avatar answered Dec 15 '22 09:12

John Smithers