Multi Touch

Discussion in 'iOS Programming' started by wonza, Mar 20, 2009.

  1. wonza macrumors member

    Joined:
    Oct 15, 2008
    #1
    I'm trying properly handle multi touches. I have enabled multitouches property and I'm using touchesBegan, touchesMoved etc and I've run into the following scenario:

    I get an event for touch A
    Then an event for touch B

    Then, I can track if a touch has been moved, but I dont know whether it was A or B that was moved. Any ideas on how to solve this?

    Thanks
     
  2. glmonte macrumors newbie

    Joined:
    Oct 21, 2008
    #2
    The UITouch object should be consistent during a touch. So store the pointer to this object, and then compare it with the touch object in touchesMoved().
     

Share This Page