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); }
public Boolean Escape() { return(keyboardInput.KeyHold(Keys.Escape)); }