How to detect the input device if mouse and touchpad are both enabled

后端 未结 6 1568
小鲜肉
小鲜肉 2021-01-15 12:14

I already have a WH_MOUSE_LL hook in my application, but need a different behavior for Mouse and Touchpad.

I know about Raw Input API, but have no idea how to use it

6条回答
  •  梦毁少年i
    2021-01-15 12:39

    Pretty simple example of read data from any different usb devices: http://sourceforge.net/projects/libusbdotnet/

    This open source C# project. Module Test_Bulk is exactly what you want to distinguish between USB-devices and read(write) data from it.

提交回复
热议问题