Joystick
A joystick has 2 JoystickAxis plus a button.
Parameters
the value of the x-axis to watch
the value of the y-axis to watch
the value of the button to watch
the amount the horizontal axis has to be moved in either direction before it is considered 'displaced'
the amount the vertical axis has to be moved in either direction before it is considered 'displaced'
by default, the y-axis of Joysticks are reversed (so pushing away from you decreases the value instead of increasing. When this is true, it will automatically correct for that.
Constructors
Properties
This command will be scheduled every time the joystick moves off center. Note that it receives a pair of floats; these are the x and y values.
Whether the current boolean state just changed to false
.
This command will be scheduled every update that the joystick isn't centered. Note that it receives a pair of floats; these are the x and y values.
Current profile curve (defaults to linear)
This command will be scheduled every time the joystick returns to center. Note that it receives a pair of floats; these are the x and y values.
Whether the current boolean state just changed to true
.
This command will be scheduled whenever the state changes. Note that it receives a pair of floats; these are the x and y values.
Whether the current boolean state just changed.
The JoystickAxis representing horizontal motion.
Y-value of the joystick. If reverseVertical is true, this will be the corrected direction.
The JoystickAxis representing vertical motion.