Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
 public bool IsHeld(T input)
 {
     return(RawKeyboardInput.IsHeld(keyMap[input]));
 }
Ejemplo n.º 3
0
 public override bool IsButtonHeld(int buttonNumber)
 {
     return(RawKeyboardInput.IsHeld(keyMap[buttonNumber]));
 }