Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi touch Delphi XE3

I just ported to delphi XE3 for adding support for multi touch inputs, i played around with the built-in gesture feature, I added two TImages on form and in their OnGesture event i added code for moving them on detection of IGPan gesture. But i cant seem to move two images at once, why so? when a gesture is under progress on one TImage the other TImage ongesture event doesnt get fired. Is it supposed to work like this or i am doing it wrong.

Upon checking the TMS Multi touch component i saw that i can interact with more than one object at one i.e pan, zoom more than one object at once. Can someone guide me in the right direction here?

like image 366
Junaid Noor Avatar asked Jul 12 '26 13:07

Junaid Noor


1 Answers

The interactive gestures are based on the WM_Gesture message. There can only be one gesture going on at a time, that's a Windows limitation. You'd have to use WM_Touch messages instead (and do all gesture recognition yourself).

Note that all of this is actually deprecated in Windows 8 (along with all mouse related messages), you're supposed to use WM_Pointer messages now.

like image 140
Giel Avatar answered Jul 15 '26 05:07

Giel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!