playMaker

Author Topic: Action for diferentiating tap double tap, tap and hold, etc...  (Read 3885 times)

C.J.Geringer

  • Playmaker Newbie
  • *
  • Posts: 48
Action for diferentiating tap double tap, tap and hold, etc...
« on: January 06, 2018, 09:20:28 AM »
 I currently use in my controller FSMs that diferetiate between "Tap", "Hold", "double tap", and "Tap and hold", and then have a global variable that sets the time threshold for Hold, and the interval between single tap and double tap.

I would like to see an action that "listens" for an axis direction(positive or negative), and allows to set the Treshold and interval variables for those tipe of inputs, and to select an event for each case.

So it would take as input:

Axis
Positive or Negative
Hold time(Used for "Hold" and the hold part of "Tap and Hold")
Double Press time(Used for "double tap" and for "tap and Hold")

Event if "Tap"
Event if "Hold"
Event if "Double Tap"
Event if "Tap and Hold"

I think it could be a usefull action for making input systems. It would certianly simplify some of  my FSMs
« Last Edit: January 06, 2018, 12:50:20 PM by C.J.Geringer »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Action for diferentiating tap double tap, tap and hold, etc...
« Reply #1 on: January 09, 2018, 06:09:26 AM »
Hi,

 for this, I strongly advice you use a dedicate Touch system like Input.Touch or EasytTouch, both have support for PlayMaker.

Easytouch is on the asset store with built in support: https://www.assetstore.unity3d.com/en/#!/content/27020

InputTouch as well and PlayMAker support is here: https://hutonggames.fogbugz.com/default.asp?W961

If you pick one of them and have trouble with PlayMaker integration, let me know.

 Bye.

 Jean

C.J.Geringer

  • Playmaker Newbie
  • *
  • Posts: 48
Re: Action for diferentiating tap double tap, tap and hold, etc...
« Reply #2 on: January 09, 2018, 06:23:19 AM »
Do they work well with buttons? from the name I thought they were focused on touch-based interfaces.


Following your link gives me the below message:

Unfortunately, PlayMaker Actions For EasyTouch is no longer available.

This package has been deprecated from the Asset Store. This means that new purchases of the package are not allowed and that only users who already purchased or downloaded the package before it was deprecated, are allowed to download it.

In most cases, package deprecation happens because the publisher is unable or unwilling to support the package anymore. We suggest looking for alternative packages or contacting the publisher directly.

If you’ve already purchased it and need to download a copy, you can do so here.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Action for diferentiating tap double tap, tap and hold, etc...
« Reply #3 on: January 09, 2018, 08:12:31 AM »
Hi,
You should look for easy touch 5 :)

Cotrol Freak 2 has also playmaker support.

Rewired is a more complete solution
and also has playmaker support.

C.J.Geringer

  • Playmaker Newbie
  • *
  • Posts: 48
Re: Action for diferentiating tap double tap, tap and hold, etc...
« Reply #4 on: January 09, 2018, 08:15:18 AM »
Thanks