Input event type for gamepad joysticks and other motions. For buttons, see InputEventJoypadButton.
    public class InputEventJoypadMotion : InputEvent

Stores information about joystick motions. One InputEventJoypadMotion represents one axis at a time.

Inheritance Chain

Constructors

    public InputEventJoypadMotion()

Properties

    public int Axis { get; set; }

Axis identifier. Use one of the [enum JoystickList] axis constants.

    public float AxisValue { get; set; }

Current position of the joystick on the given axis. The value ranges from -1.0 to 1.0. A value of 0 means the axis is in its resting position.

Methods

    [Obsolete("GetAxis is deprecated. Use the Axis property instead.")]
    public int GetAxis()

Getter for Axis

    [Obsolete("GetAxisValue is deprecated. Use the AxisValue property instead.")]
    public float GetAxisValue()

Getter for AxisValue

    [Obsolete("SetAxis is deprecated. Use the Axis property instead.")]
    public void SetAxis(int axis)

Setter for Axis

    [Obsolete("SetAxisValue is deprecated. Use the AxisValue property instead.")]
    public void SetAxisValue(float axisValue)

Setter for AxisValue

Tags: