playMaker

Author Topic: on double touch event  (Read 4658 times)

Sjones

  • Full Member
  • ***
  • Posts: 203
on double touch event
« on: September 08, 2012, 05:45:00 AM »
I am wondering if someone can do an on double touch event, that if 2 fingers touch at the same time it will store their ID's and send on an fsm event.

I will be giving this a shot later but it might be simple and someone could do it in a couple of min.

Sjones

  • Full Member
  • ***
  • Posts: 203
Re: on double touch event
« Reply #1 on: September 08, 2012, 04:12:19 PM »
think I have done this, not entirly sure but on every attempt to break this or get a result other than expected has failed which is good, I changed the normal touch event from if (Input.touchCount > 0) to if (Input.touchCount > 1), my fear was that not understanding the script fully that the fingerID might be incorrect or not work, this again doesnt seem to be the case, I put this first and then the standard >0 after so it looks for 2 fingers first and then just the 1.

I still dont know how to set the unique fingerID to each, but for now its working and this doesn't seem to be an issue.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: on double touch event
« Reply #2 on: September 10, 2012, 03:44:31 AM »
Hi,

 I have ported input.touches to playmaker, and you can have control over this and received events on double touch with two fingers and other nice combos.

https://hutonggames.fogbugz.com/default.asp?W961

bye,

 Jean