detecting 2 touches, is order of touch significant? - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Game Programming Fundamentals (/forum-7.html) +--- Thread: detecting 2 touches, is order of touch significant? (/thread-9149.html) detecting 2 touches, is order of touch significant? - sefiroths - Jul 10, 2011 03:20 AM i have to scale images with 2 finger. if the finger don't touch contemporaly touchesBegin doesn't detect the initial distance between 2 points. if the second touch arrives after the first, touches moved starts. the strange thing happening is: when i touch the screen with one finger on the left of the screen, and detect the position of the touch, and then i add the second finger on the right of the screen, starts touchesMoved [mmmmm] and, the result is: x1=48.500000 y1=455.500000 x2=29.500000 y2=240.500000 if i touch with the first finger on the right, the the left (touching the same points) x1=73.000000 y1=29.000000 x2=451.500000 y2=264.000000 why the coordinates are not the same? thanks RE: detecting 2 touches, is order of touch significant? - PoseMotion - Sep 2, 2011 09:15 PM It looks as if x1y1 are set to which finger touches first. Then x2y2 is set for the second finger. But on your second example it looks like y1 and x2 are getting flopped. At least by comparing it by your first example. RE: detecting 2 touches, is order of touch significant? - funkboy - Sep 2, 2011 11:38 PM A little picture of where you are placing your fingers would help with this question. RE: detecting 2 touches, is order of touch significant? - sefiroths - Sep 12, 2011 12:49 AM i have found that i didn't set multiple touch enabled! setting up now it works. RE: detecting 2 touches, is order of touch significant? - @iOS_blog - Sep 30, 2011 07:29 AM Here is a great article: Create multiple views and make the touched view follow the users touch