Shachar Weis
Shachar Weis

Reputation: 946

How to capture windows 7 touch events in XNA?


Anyone know how to capture windows 7 (not phone!)
touch events in an XNA application ?
I really want to do this without rendering everything into a Form.
Any ideas ?
Thanks.

Upvotes: 2

Views: 1066

Answers (1)

Rudi Visser
Rudi Visser

Reputation: 22019

You need to handle WM_TOUCHUP, WM_TOUCHDOWN, etc via WndProc.

There's a really nice and comprehensive article available here, which provides code and explanation.

Upvotes: 1

Related Questions