How to fake "Multitouch" for Windows Mobile?
compact-framework, mobile, multi-touch, windows-mobile
Solution
The short answer is that it's just not going to work.
For multitouch you have to have the hardware to support it (capacitive tocuhscreen). There's simply no way to make a resistive touchscreen (what's on your WinMo device) "see" two touches. Instead it just provides the average of all touches.
I have seen a hack that assumes you don't touch both points at one time and that one point (upper left usually) never moves. You can then figure out where the second point is by backing out from the average. It sort-of worked for things like "zoom out" and "zoom in" type gestures, but that's about it.
Even if you have a capacitive touchscreen, unless the OS knows how to handle the mouse being at two positions at any given time, or the touchpanel driver explicitly provides the app with that info, you're still out of luck.
Problem
Here's the idea: I have two panels that have MouseDown events. The idea I had was to have a timer that would enable and disable the panels alternatively every tenth of a second. I was hoping that the MouseDown event would be caught by one panel and then I could read the e.X and e.Y of the event, and then the MouseDown event would be caught by another panel the next timer event. This would be true MultiTouch but it might be enough to have some fun. But this doesn't work in practice. My assumption is this technique is prevent from working at the hardware level. But I wanted to make sure nobody else had an idea on how to accomplish the "Hack Multitouch" Any ideas?