Page 1 of 1
Requiring two touch events?
Posted: Sun Mar 20, 2011 3:13 am
by ctflatt
How do you require a two-finger touch to activate a control?
Thanks!
Re: Requiring two touch events?
Posted: Sun Mar 20, 2011 3:20 pm
by ctflatt
Can this be done?
:Todd
Re: Requiring two touch events?
Posted: Sun Mar 20, 2011 3:29 pm
by observ3
I'm really weak on multitouch, but from what I've been reading might this work?
1) record the IDs of each touch event.
2) record the timing of each touch event.
3) create an object that feels for touches in the following manner...
4) if two touch events happen on the object within, say, 500 milliseconds of eachother (maybe faster?), then the control is activated.
Sorry it's an idea and not code, I'm still struggling with how to track multiple touch events in unique variables... any help on that matter would be nice.
Re: Requiring two touch events?
Posted: Sun Mar 20, 2011 3:33 pm
by ctflatt
observ3:
Thanks for the input. At least I have an idea now of what I'm trying to do.
I am currently coding at about a kindergarten level.
If anyone can provide a case scenario stack, it would be very much appreciated!
Thanks!
:Todd