Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: westingtyler on June 25, 2018, 12:45:17 AM

Title: Send Event if Thumbstick is Neutral?
Post by: westingtyler 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.
Title: Re: Send Event if Thumbstick is Neutral?
Post by: djaydino 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 (https://assetstore.unity.com/packages/tools/utilities/rewired-21676) which is better than the input manager.
It's not cheap, but worth every penny.