Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# VB.NET
for industrial use, we want to connect 2 additional mouse. The position of the mouse data to be evaluated in a separate application. My problem is that is indeed such a mouse automatically logs on to Windows and then move the mouse pointer of course. This I will not.
Could hear the supplied mouse I recognize on the basis of VendorId. But I have no idea how I can suppress the assignment in Windows and get to the mouse data.
Has anyone of you an idea ?
Thank you very much
Posted 16-Jan-13 7:56am
Sergey Alexandrovich Kryukov at 16-Jan-13 15:39pm
How a mouse can log on to Windows? Highly trained? I cannot understand almost nothing...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Microsoft has an SDK for handling multiple mice. Using the SDK you can get input from up to 25 different mice.
This SDK comes with a comprehensive set of examples.[^]
you start by assigning a MultipointMouse event:
MultipointMouseEvents.AddMultipointMouseDownHandler(this, this.OnMultipointMouseDown);
and in the event handler you deal with the mouse data:
private void OnMultipointMouseDown(object sender, RoutedEventArgs e)
    var args = (MultipointMouseEventArgs)e;
you can access the device that sent the event:
You can know the state of the buttons:
if (args.Buttons == RawMouseButtons.LeftDown)
    //do something...
Etc... Etc...
The SDK comes with a few easy c# samples.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,651
1 Sergey Alexandrovich Kryukov 6,400
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,542

Advertise | Privacy | Mobile
Web02 | 2.8.140921.1 | Last Updated 19 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100