Jorge Oliveira Jorge Oliveira - 1 month ago 32
C# Question

Recognize touch as MouseDown event

I am building a puzzle game in C#, winforms for a touch screen.

I am able to handle touch events on mouse handlers, in fact, i did nothing at all, but it already recognizes my touches. However, there is an issue that i can't figure it out. The mouse_down, only happens when i move a bit my finger, and did not recognize the instant when i touch the screen.

Does anyone has already faced this problem?
Should i implement some touch events recognition? If so, could you please point me some documentation or examples?

Many Thanks in advance

Answer

One suggestion that sounds as a plausible solution is to override WndProc and search for a WM_TOUCH event. More details here: http://stackoverflow.com/a/15785333/3330348

Comments