View Full Version : multitouch handling
wonza
Mar 11, 2009, 09:28 AM
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!
dejo
Mar 11, 2009, 11:18 AM
Take a look at the available options for UIControlEvents and I'm sure you can figure out which one you need.
wonza
Mar 12, 2009, 05:08 AM
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.
dejo
Mar 12, 2009, 11:14 AM
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.
Ah, okay. Not sure I can help you there then. I haven't done much real OpenGL development.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.