Search code examples
c#winformstouch

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


Solution

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