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