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); }
protected Boolean JoyHold(Buttons button) { return(JoystickInput.JoyHold(button)); }
public Boolean Escape() { return(joystickInput.JoyHold(Buttons.Back)); }