public bool IsHeld(AxisDirections dir) { switch (dir) { case AxisDirections.Up: return(RawKeyboardInput.IsHeld(Keys.Up)); case AxisDirections.Down: return(RawKeyboardInput.IsHeld(Keys.Down)); case AxisDirections.Left: return(RawKeyboardInput.IsHeld(Keys.Left)); default: return(RawKeyboardInput.IsHeld(Keys.Right)); } }
public bool IsHeld(T input) { return(RawKeyboardInput.IsHeld(keyMap[input])); }
public override bool IsButtonHeld(int buttonNumber) { return(RawKeyboardInput.IsHeld(keyMap[buttonNumber])); }