Struct GamepadButtonAxisBinding
A pair of gamepad buttons that move an axis action negative and positive.
public readonly record struct GamepadButtonAxisBinding : IEquatable<GamepadButtonAxisBinding>
- Implements
- Inherited Members
Constructors
GamepadButtonAxisBinding(GamepadButton, GamepadButton, float)
A pair of gamepad buttons that move an axis action negative and positive.
public GamepadButtonAxisBinding(GamepadButton Negative, GamepadButton Positive, float Scale = 1)
Parameters
NegativeGamepadButtonThe button that moves the axis toward -1.
PositiveGamepadButtonThe button that moves the axis toward 1.
ScalefloatHow much each held button adds to the value.
Properties
Negative
The button that moves the axis toward -1.
public GamepadButton Negative { get; init; }
Property Value
Positive
The button that moves the axis toward 1.
public GamepadButton Positive { get; init; }
Property Value
Scale
The amount each held button adds to the value. The total is clamped to -1 to 1.
public float Scale { get; init; }