Get mouse coordinates - multi touch

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.
 
P

Peter Duniho

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top