filtering input to system cursor

filtering input to system cursor

Post by c29sc2ltcH » Sun, 24 Feb 2008 00:58:02


We are using RawInput to detect inputs from multiple connected mice and this
is working well.

However, is there a way to instruct the OS to only use input from one of the
mice when changing the system cursor position etc, but still have access to
all mice inputs via RawInput? By default inputs from all connected mice
effect the system cursor which is not what we need.

I'm using VS 2005, coding in C.

Thank you.
 
 
 

filtering input to system cursor

Post by jeta » Fri, 07 Mar 2008 11:55:19

Hi,

I assume you are using WM_INPUT message with GetRawInputData to get raw
input data from the HID.

Then, when you are registering the device with RegisterRawInputDevices,
have you tried to specify RIDEV_NOLEGACY flag? Based on the MSDN, if this
flag is set, the device will not generate any legacy message for that
device. For example, the mouse will not generate WM_LBUTTONDOWN and related
legacy mouse messages.
http://www.yqcomputer.com/

Does this meet your need? Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://www.yqcomputer.com/ #notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://www.yqcomputer.com/
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

 
 
 

filtering input to system cursor

Post by c29s » Fri, 07 Mar 2008 20:38:06

Hi Jeffrey,

Thank you for your reply. There are two issues really:

1) using RIDEV_NOLEGACY does not effect the system cursor movement. What we
need is the ability to select (programatically) which mouse is used to drive
the system cursor and which mice are ignored for the cursor movement, but
still generate WM_INPUT messages so we can use the mouse device for other
purposes.

2) When using RIDEV_NOLEGACY, obviously the mouse does not geenrate any
events, so window moving etc. is froozen. How can I use RIDEV_NOLEGACY but
generate appropiate lecacy messages from just one of the mice? Basically, I
need what RIDEV_NOLEGACY does, but I need to be able to specify it at a
device id level, not a device category level.

I'm wondering if the only way to really do the above would be to write a
custom mouse driver. Is this the case, and if so, can you point me to a good
start?

Thank you,

Sol
 
 
 

filtering input to system cursor

Post by jeta » Sat, 08 Mar 2008 16:19:52

Hi Sol,

Thanks for your detailed feedback.

I suspect if this granularity of control is exposed in user-mode User32
APIs because I did not find anything in MSDN yet. Also, I did not find any
setting in Control Panel-> Mouse Properties dialog yet.

Anyway, I will try to consult this with the Windows GUI team, I hope they
can share some insight for this issue. I will get back to you ASAP. Thanks.

Btw: MSDN managed support in this newsgroup does not cover driver
programming yet. Actually, microsoft.public.development.device.drivers is
dedicated for driver programming discussion. Anyway, I will try my best to
help you on it.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
XXXX@XXXXX.COM .

This posting is provided "AS IS" with no warranties, and confers no rights.
 
 
 

filtering input to system cursor

Post by jeta » Tue, 11 Mar 2008 12:29:40

Hi Sol,

Sorry for letting you wait.

I have tried to contact the UI and driver teams for this issue, however, I
did not get any response yet.

Based on my experience, we may have to write a driver for this issue. Since
I am not a driver expert, I would recommend you to post in
microsoft.public.development.device.drivers for help or contact Microsoft
CSS for a case support.

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
XXXX@XXXXX.COM .

This posting is provided "AS IS" with no warranties, and confers no rights.