I follow these steps to download Multi-Touch Vista and configure it to simulate finger touch using multiple mice.
It works well, now I have two red dots on screen, each controlled by a mouse.
And I then write a WPF application, which has a single window with a Canvas, and in the Canvas's TouchDown event handler, I log which finger (mouse) is touching the screen.
private void canvas_TouchDown(object sender, TouchEventArgs e)
{
System.Diagnostics.Debug.WriteLine(e.TouchDevice.Id);
}
But to my surprise, the Id
is always 258, no matter which mouse I use - I expect it to be starting from 0 or 1, and the Id is different between 2 fingers (mice).
I am testing on Win7 32bit.