Re: [AD] Touchpad gestures

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, Feb 18, 2010 at 4:28 PM, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> In the iphone port we use the mouse button field for it, but yes, that wouldn't work out for devices which have multi-touch *and* buttons. (On the iphone Apple's finger tracking isn't very reliable anyway so it's best to ignore the finger number and just figure out the gestures from the reported positions.)

Doesn't it give you events based on the gesture it detected?


No.

http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/EventHandling/EventHandling.html#//apple_ref/doc/uid/TP40007072-CH9-SW1

Basically, you get the x/y coordinates and do the rest yourself. Apple is constantly updating APIs though with documentation lagging behind so the newest version of the API might have built-in gesture detection.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/