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
Quote this message in a reply
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. Wink
Quote this message in a reply
Moderator
Posts: 384
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.
Quote this message in a reply
Member
Posts: 164
Joined: 2010.10
Post: #4
i have found that i didn't set multiple touch enabled!
setting up now it works.
Quote this message in a reply
Apprentice
Posts: 11
Joined: 2011.09
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Detecting OS and Mac version xiotex 2 3,090 Nov 14, 2009 03:02 PM
Last Post: xiotex
  Detecting window focus events Coyote 2 3,416 Oct 23, 2009 03:01 PM
Last Post: Coyote
  HUD - matching touches to object? cool mr croc 13 5,902 Aug 31, 2009 12:50 PM
Last Post: cool mr croc
  Advice regarding Views & Touches for iPhone game Elphaba 5 3,263 Jul 17, 2009 01:54 PM
Last Post: Frank C.
  Randomize Code Order ChrisPol 9 4,891 Aug 22, 2007 07:40 PM
Last Post: AnotherJake