playMaker

Author Topic: Is there an action to wait for joystick UP?[solved]  (Read 1599 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Is there an action to wait for joystick UP?[solved]
« on: November 20, 2015, 12:56:10 PM »
So I have joystick support to navigate the menus.  However, if you press down on the joystick and leave it down it will keep on looping refiring the events.  Is there an action towait until the joystick is up so I can continue the loop?  I vaguely remember there was one but can't find it.
« Last Edit: November 20, 2015, 01:03:55 PM by wheretheidivides »

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: Is there an action to wait for joystick UP?
« Reply #1 on: November 20, 2015, 01:03:36 PM »
I'm an idiot.  You just use the same axis event and wait for 'no direction'.  For those searching for this here is how it's done.

So I press a button and this canvas activates.  When it does, the playmaker FSM runs.  So I start out by waiting for a 'no direction' as from the button it is still pressed.  Then after pressing a joystick button again, I also wait for a 'no direction'.  This basically is waiting for the joystick button to be released.
« Last Edit: November 20, 2015, 01:05:45 PM by wheretheidivides »