Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wonza

macrumors member
Original poster
Oct 15, 2008
65
0
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!
 

wonza

macrumors member
Original poster
Oct 15, 2008
65
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.