Get mouse coordinates - multi touch

  • Thread starter Thread starter alexia
  • Start date Start date
A

alexia

Hi all,

I wrote an application by P/invok GetCursorPos(). However, my screen
is multi-touch screen.
GetCursorPos() and all other traditional C# methods doesn't return
mouse position for multi-touch.
Is there any way to get coordinates in multi-touch screen?

Thank you for your help.
 
alexia said:
Hi all,

I wrote an application by P/invok GetCursorPos(). However, my screen
is multi-touch screen.
GetCursorPos() and all other traditional C# methods doesn't return
mouse position for multi-touch.
Is there any way to get coordinates in multi-touch screen?

Hmmm. I entered ".NET multi-touch API" as my search phrase for Google.
First hit:
http://code.msdn.microsoft.com/WindowsTouch

Includes managed interop sample code and lots of other useful information.

Bing even turned up the above page as the fourth link, and the first
three links are pages that reference the above link.

As of Dec 2009, according to the above web page, the "next version" of
WPF will support Multitouch. The next version of WPF is in .NET 4.0,
which is almost here (you can download beta/RC now).

So you might want to look at the .NET 4.0 WPF docs instead. A quick
glance suggests that, as usual, the docs are a bit skimpy. But
multi-touch support does appear to be in there for 4.0.

Pete
 
Back
Top