VirtualButton
Namespace: Murder.Core.Input
Assembly: Murder.dll
public class VirtualButton : IVirtualInput
Implements: IVirtualInput
⭐ Constructors
public VirtualButton()
⭐ Properties
_lastPressedButton
public Nullable`1[] _lastPressedButton;
Returns
T?[]
Buttons
public List<T> Buttons;
Returns
List<T>
Consumed
public bool Consumed;
Returns
bool
Down
public bool Down { get; private set; }
Returns
bool
LastPressed
public float LastPressed;
Returns
float
LastReleased
public float LastReleased;
Returns
float
Pressed
public bool Pressed { get; }
Returns
bool
Previous
public bool Previous { get; private set; }
Returns
bool
⭐ Events
OnPress
public event Action<T> OnPress;
Returns
Action<T>
⭐ Methods
LastPressedButton(bool)
public InputButton LastPressedButton(bool keyboard)
Parameters
keyboard
bool
Returns
InputButton
GetDescriptor()
public string GetDescriptor()
Returns
string
Update(InputState)
public virtual void Update(InputState inputState)
Parameters
inputState
InputState
Consume()
public void Consume()
Free()
public void Free()
⚡