Requiring two touch events?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Requiring two touch events?

Post by ctflatt »

How do you require a two-finger touch to activate a control?

Thanks!
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Requiring two touch events?

Post by ctflatt »

Can this be done?

:Todd
observ3
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 34
Joined: Mon Oct 11, 2010 11:05 pm

Re: Requiring two touch events?

Post 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.
Check out my LiveCode program, WriteSpire, on the App Store!
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Requiring two touch events?

Post 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. :D

If anyone can provide a case scenario stack, it would be very much appreciated!

Thanks!

:Todd
Post Reply