playMaker

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

westingtyler

  • Full Member
  • ***
  • Posts: 186
    • View Profile
    • My Oculus Rift + Touch VR Game Using Playmaker
Send Event if Thumbstick is Neutral?
« on: June 24, 2018, 09:45:17 PM »
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 24, 2018, 09:47:14 PM by westingtyler »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3389
    • View Profile
    • jinxtergames
Re: Send Event if Thumbstick is Neutral?
« Reply #1 on: June 25, 2018, 03: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.