## detecting 2 touches, is order of touch significant?

Member
Posts: 164
Joined: 2010.10
Post: #1
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
Member
Posts: 49
Joined: 2011.08
Post: #2
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.
Moderator
Posts: 387
Joined: 2002.08
Post: #3
A little picture of where you are placing your fingers would help with this question.

KB Productions, Car Care for iPhone/iPod Touch
@karlbecker_com
All too often, art is simply the loss of practicality.
Member
Posts: 164
Joined: 2010.10
Post: #4
i have found that i didn't set multiple touch enabled!
setting up now it works.
Apprentice
Posts: 11
Joined: 2011.09
Post: #5