Struct GamepadAxisBinding
A gamepad stick or trigger that drives an axis action.
public readonly record struct GamepadAxisBinding : IEquatable<GamepadAxisBinding>
- Implements
- Inherited Members
Constructors
GamepadAxisBinding(GamepadAxis, bool, float)
A gamepad stick or trigger that drives an axis action.
public GamepadAxisBinding(GamepadAxis Axis, bool Invert = false, float Deadzone = 0.2)
Parameters
AxisGamepadAxisThe stick or trigger.
InvertboolWhether to flip the sign of the value.
DeadzonefloatValues smaller than this in size are read as 0.
Properties
Axis
The stick or trigger.
public GamepadAxis Axis { get; init; }
Property Value
Deadzone
Values with a size below this are read as 0, after any inversion. Defaults to 0.2.
public float Deadzone { get; init; }
Property Value
Invert
Whether to flip the sign of the value, so that a stick can be read the other way.
public bool Invert { get; init; }