コード例 #1
0
        public Boolean Back()
        {
            // Mouse.
            if (StatusBar())
            {
                return(true);
            }

            // Joystick.
            if (joystickInput.JoyHold(Buttons.Back) || joystickInput.JoyHold(Buttons.B))
            {
                return(true);
            }

            // Keyboard.
            if (keyboardInput.KeyHold(Keys.Escape) || keyboardInput.KeyHold(Keys.B))
            {
                return(true);
            }

            return(false);
        }
コード例 #2
0
 protected Boolean JoyHold(Buttons button)
 {
     return(JoystickInput.JoyHold(button));
 }
コード例 #3
0
 public Boolean Escape()
 {
     return(joystickInput.JoyHold(Buttons.Back));
 }