Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Multiple touch

Is there any way to implement multi touch ( not too figure tap) on the iPhone or even android?

Thanks in advance.!

— asked May 19th 2010 by eaymon latif
  • finger
  • iphone
  • multiple
  • tap
  • touch
  • two
0 Comments

1 Answer

  • For iPhone you can try the Titanium Multi Touch Module.

    Here is a quick sample code:

    win.addEventListener('singletap', function(event) {
        // DON'T REMOVE THIS LISTENER!!
        // hack for multi touch module
    });
    win.addEventListener("touchstart", function(event) {
        Ti.API.info("Touch started, points: " + event.points);
    });
    win.addEventListener("touchend", function(event) {
        Ti.API.info("Touch ended, points: " + event.points);
    });
    
    — answered July 30th 2011 by Uri Shaked
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.