Re: How to use 2 USB mice independently and simultaneously?
From: Doron Holan [MS] (doronh_at_nospam.microsoft.com)
Date: 11/03/04
- Next message: Eliyas Yakub [MSFT]: "Re: SetupDiGetDeviceRegistryProperty() Question"
- Previous message: paullee: "How to slove these bugcheck code??"
- In reply to: Zed: "How to use 2 USB mice independently and simultaneously?"
- Next in thread: Robert Marquardt: "Re: How to use 2 USB mice independently and simultaneously?"
- Reply: Robert Marquardt: "Re: How to use 2 USB mice independently and simultaneously?"
- Reply: Zed: "Re: How to use 2 USB mice independently and simultaneously?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 21:04:08 -0800
use WM_INPUT. you can distinguish between independent input streams using
this message.
(yes, windows open the mouse for exclusive access immediately when it
arrives, you are not allowed to read from it.)
d
-- Please do not send e-mail directly to this alias. this alias is for newsgroup purposes only. This posting is provided "AS IS" with no warranties, and confers no rights. "Zed" <artur@chello.nl> wrote in message news:bfe179bd.0411021540.3654af23@posting.google.com... > Hello Experts :-), > > I am writing a Windows XP fun-application and would like to use 2 > INDEPENDENT USB mice SIMULTANEOUSLY as input devices. Therefore, I > understant, I have to go below OS mouse events (below mouse driver) as > they all appear as coming from a single mouse. So, I tried to go > through reading a HID-based device as described in the DDK. But I > cannot get any data from a HID-based mouse. The reason is that I > cannot even open a file by CreateFile (cannot get the handle to the > mouse) cause this returns an Invalid_Handle_Value. > > What I think happens is that OS open a file earlier (at installing the > device) capturing the handle and that only one file handle can be open > to a HID based device, so the OS is the only one to be able to readall > the HID input reports. > > Am I right? Or is ther a way to get input from mouse at HID device > level? > > I see some solutions if I cannot access HID mouse from HID driver > level: > 1. At Windows level if there is some differentiation possible to see > from which mouse the particular event came. But I doubt whether it is > possible. > > 2. There is some way to overtake a handle to HID from OS. Whether > stealing at the moment the device is connecting and drivers are > interconnecting, or after the device is already connected. Somehow. I > do not have a clue ho to do this. Any tips guys? > > 3. There is a filter driver needed below HID driver (HID mini driver? > USB driver?), from where the mouse reports could be stolen from OS, or > maybe forked? > > Would like to hear your opinion on that issue, > Any help? Example code? > > Kind regards, > Zed
- Next message: Eliyas Yakub [MSFT]: "Re: SetupDiGetDeviceRegistryProperty() Question"
- Previous message: paullee: "How to slove these bugcheck code??"
- In reply to: Zed: "How to use 2 USB mice independently and simultaneously?"
- Next in thread: Robert Marquardt: "Re: How to use 2 USB mice independently and simultaneously?"
- Reply: Robert Marquardt: "Re: How to use 2 USB mice independently and simultaneously?"
- Reply: Zed: "Re: How to use 2 USB mice independently and simultaneously?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|