Simultaneous keys on mobil

J. Landman Gay jacque at hyperactivesw.com
Sun Dec 15 15:08:52 EST 2013


On 12/15/13 10:16 AM, Bill Vlahos wrote:
> I have a iOS game where I have 3 buttons. The user can press any one
> of them by itself, two of them together, or all three together to
> register the correct answer. I how do I tell simultaneous button
> presses from multiple buttons?

Maybe one of these will get your started:

<http://lessons.runrev.com/s/lessons/m/4069/l/11493-how-do-i-use-multi-touch-to-move-more-than-one-object>

<http://lessons.runrev.com/s/lessons/m/4069/l/11509-how-do-i-implement-a-multi-touch-pinch-motion>

<http://lessons.runrev.com/s/lessons/m/4069/l/11953-livecode-mobile-video-how-to-s-multi-touch>

Basically each touch event provides a unique ID, which you can use to 
calculate whatever you need. The examples mostly deal with moving 
objects, but in this case you could just store the IDs and see how many 
you get.

You might need to also store the milliseconds or something similar to 
make sure the events are close enough together to count as a single 
"touch" by the user.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list