VirtualAxis
Namespace: Murder.Core.Input
Assembly: Murder.dll
public class VirtualAxis : IVirtualInput
Implements: IVirtualInput
⭐ Constructors
public VirtualAxis()
⭐ Properties
_lastPressedButton
public Nullable`1[] _lastPressedButton;
Returns
T?[]
ButtonAxis
public ImmutableArray<T> ButtonAxis { get; }
Returns
ImmutableArray<T>
Consumed
public bool Consumed;
Returns
bool
Down
public bool Down { get; private set; }
Returns
bool
IntPreviousValue
public Point IntPreviousValue { get; private set; }
Returns
Point
IntValue
public Point IntValue { get; private set; }
Returns
Point
Pressed
public bool Pressed { get; }
Returns
bool
PressedValue
public Point PressedValue { get; private set; }
Returns
Point
PressedX
public bool PressedX { get; }
Returns
bool
PressedY
public bool PressedY { get; }
Returns
bool
Previous
public bool Previous { get; private set; }
Returns
bool
PreviousValue
public Vector2 PreviousValue { get; private set; }
Returns
Vector2
TickX
public bool TickX { get; }
Like a keyboardkey, true on pressed and then every VirtualAxis._firstTickDelay.
Returns
bool
TickY
public bool TickY { get; }
Like a keyboardkey, true on pressed and then every VirtualAxis._firstTickDelay.
Returns
bool
Value
public Vector2 Value { get; private set; }
Returns
Vector2
⭐ Events
OnPress
public event Action<T> OnPress;
Returns
Action<T>
⭐ Methods
GetActiveButtonDescriptions()
public IEnumerable<T> GetActiveButtonDescriptions()
Returns
IEnumerable<T>
LastPressedAxes(bool)
public InputButtonAxis LastPressedAxes(bool keyboard)
Parameters
keyboard
bool
Returns
InputButtonAxis
Update(InputState)
public virtual void Update(InputState inputState)
Parameters
inputState
InputState
⚡