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

后端 未结 6 1572
小鲜肉
小鲜肉 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条回答
  •  广开言路
    2021-01-15 12:51

    I was tried cnPackRawInput and its working fine. it have a KeyboardFromHandle function and i can compare is it my special keyboard(eg. msr device,barcode scanner). But i don't have any idea about is it handle pointing device. anyway you can try. if it support than you can use.

    sorry for bad english.

    http://www.google.com/codesearch/p?hl=en#6CoJUlkQju4/trunk/cnvcl/Source/NonVisual/CnRawInput.pas&q=rawinput%20package:http://cnpack%5C.googlecode%5C.com&sa=N&cd=3&ct=rc

提交回复
热议问题