detecting 2 touches, is order of touch significant?
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
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
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.
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.
i have found that i didn't set multiple touch enabled!
setting up now it works.
setting up now it works.
Here is a great article: Create multiple views and make the touched view follow the users touch
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Detecting OS and Mac version | xiotex | 2 | 2,721 |
Nov 14, 2009 03:02 PM Last Post: xiotex |
|
| Detecting window focus events | Coyote | 2 | 2,990 |
Oct 23, 2009 03:01 PM Last Post: Coyote |
|
| HUD - matching touches to object? | cool mr croc | 13 | 5,343 |
Aug 31, 2009 12:50 PM Last Post: cool mr croc |
|
| Advice regarding Views & Touches for iPhone game | Elphaba | 5 | 2,865 |
Jul 17, 2009 01:54 PM Last Post: Frank C. |
|
| Randomize Code Order | ChrisPol | 9 | 4,572 |
Aug 22, 2007 07:40 PM Last Post: AnotherJake |
|

