Hello,
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.
http://www.microsoft.com/multipoint/mouse-sdk/default.aspx[
^]
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:
args.DeviceInfo
You can know the state of the buttons:
if (args.Buttons == RawMouseButtons.LeftDown)
{
}
Etc... Etc...
The SDK comes with a few easy c# samples.
Valery.