playMaker

Author Topic: Send Event if Thumbstick is Neutral?  (Read 1543 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Send Event if Thumbstick is Neutral?
« on: June 25, 2018, 12:45:17 AM »
The current way i have to do this is clunky and requires many states, so a single action that can check each frame or not, and send an event for this, would be handy.


currently it's like : get axis vector. get vector3 xyz. get absolute float of x and z. if z is less than .1, go to checking of z. 

in the checking z state, if z is less than .1 as well, send COMPLETE!.

it would be handy to have a single action that gets the axis vectors and absolutizes them, and if BOTH are at or close to 0, sends an event.

basically, "Test and Send Event if Thumbstick is Neutral (or optionally close to neutral, and check each frame or not)."

PS. I could never get the Get XBox Thumbstick Axis to do anything, I don't think, which is why I set them up in the input manager.
« Last Edit: June 25, 2018, 12:47:14 AM by westingtyler »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Send Event if Thumbstick is Neutral?
« Reply #1 on: June 25, 2018, 06:37:49 AM »
Hi.
"Axis Event" has a 'No Direction' Event

For the controls i use (already a long time) the Rewired Asset which is better than the input manager.
It's not cheap, but worth every penny.