locked
Using Second Keyboard and Second Mouse via HID Interface RRS feed

  • Question

  • Hello,

    I would like to use my second keyboard or my second mouse via HID. When I switched them on, Windows recognized them and put them in my device manager under the category mouse devices for my mouse and keyboard for my keyboard. Windows also put them under the Category Human Interface Devices. The drivers that a loaded are for i.e. my mouse in the category mouse : mouclass.sys and mouhid.sys, and in the category HID Devices: hidclass.sys, hidparse.sys and hidusb.sy.

    I tried them to remove the mouse drivers from the category mouse, that what loaded for the mouse to communicate with the mouse over the HID interface. For that I removed the mouse drivers mouclass.sys and mouhid.sys from the mouse category in the device manager. After that the communication via VB was not possible.

    Does I forget something in the scenario explained above, to use a second mouse or keyboard for the communication via HID?


    Wednesday, July 21, 2010 10:39 AM

Answers

  • Hi:

    There is no good way to purge the keyboard or mouse information from the devices and pass "pure" HID data.  Any HID data coming on usage 0x2 or 0x6 will be treated as mouse or keyboard data or ignored if it is not recognized.

     

    If you want to support multiple mouses or keyboards in your own app use the RegisterRawInputDevices API and look at the hDevice in the RAWINPUTHEADER for individual input packets.

     

    There is no support for multiple mouses or keyboards through the general mouse or keyboard API.

    Thanks

    Wendell

    Friday, August 13, 2010 11:17 PM