multitouch handling

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

  1. wonza macrumors member

    Joined:
    Oct 15, 2008
    #1
    Im using touchesBegan and touchesEnded to handle my on screen buttons.. These are a press and hold down style, so I have a problem if the user presses and holds down a button, and then moves their finger out of the button area and then lets go the button will stay pressed. As other buttons maybe pushed at the same time, Im having a hard time working out which touch is which, so I need to somehow track that the first touch is moved out of the area, and not one of the other touches, if that makes sense? Any idea how to do this? Thanks!
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Take a look at the available options for UIControlEvents and I'm sure you can figure out which one you need.
     
  3. wonza thread starter macrumors member

    Joined:
    Oct 15, 2008
    #3
    Is there any example code that uses this? Im struggling to get it working. The Touches example doesnt seem to use it :confused:

    Also to point out, this if for use in an opengl application, so its not for tracking touches on components or anything, if that makes a difference.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Ah, okay. Not sure I can help you there then. I haven't done much real OpenGL development.
     

Share This Page