InputEventJoypadMotion
Represents axis motions (such as joystick or analog triggers) from a gamepad.
Represents axis motions (such as joystick or analog triggers) from a gamepad.
Stores information about joystick motions. One InputEventJoypadMotion represents one axis at a time. For gamepad buttons, see InputEventJoypadButton.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
InputEventJoypadMotionConstructor
public InputEventJoypadMotion();Properties2
AxisProperty
public JoyAxis Axis { get; set; }Axis identifier.
AxisValueProperty
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.
Methods4
GetAxisJoyAxis
public JoyAxis GetAxis();Returns
JoyAxisGetAxisValuefloat
public float GetAxisValue();Returns
floatSetAxisvoid
public void SetAxis(JoyAxis axis);| Name | Type | Default |
|---|---|---|
axis | JoyAxis | — |
SetAxisValuevoid
public void SetAxisValue(float axisValue);| Name | Type | Default |
|---|---|---|
axisValue | float | — |
Reckfell Engine documentationBack to top ↑