Reputation: 2068
is there any way, using c# .NET/Mono 2.10 to handle the events sent by two mouses connected to the same computer?
I only want to know when the X's and the Y's of each mouse has changed.
Thanks in advance!
Upvotes: 1
Views: 887
Reputation: 283634
You can track multiple input devices separately using the WM_INPUT
message. Details here. However, this is Windows-specific, while you can access it from C# using p/invoke, your chances on Mono are slim to none.
On Linux, you probably would want to open and read from the various /dev/input/
n
devices and process multiple mice that way. Or use the X-Windows input APIs.
Upvotes: 1