Esempio 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));
            }
        }
Esempio n. 2
0
 public bool IsHeld(T input)
 {
     return(RawKeyboardInput.IsHeld(keyMap[input]));
 }
Esempio n. 3
0
 public override bool IsAnyPressed()
 {
     return(RawKeyboardInput.IsAnyKeyPressed());
 }
Esempio n. 4
0
 public override bool IsAnyHeld()
 {
     return(RawKeyboardInput.IsAnyKeyHeld());
 }
Esempio n. 5
0
 public override bool IsButtonHeld(int buttonNumber)
 {
     return(RawKeyboardInput.IsHeld(keyMap[buttonNumber]));
 }