public static bool Dismiss(bool doMouse = true, bool doKeyBoard = true, bool doGamePad = true) { if (Core.GameInstance.IsActive) { if (doKeyBoard) { if (KeyBoardHandler.KeyPressed(Core.KeyBindings.Back1) || KeyBoardHandler.KeyPressed(Core.KeyBindings.Back2)) { return(true); } } if (doMouse) { if (MouseHandler.ButtonPressed(MouseHandler.MouseButtons.RightButton)) { return(true); } } if (doGamePad) { if (ControllerHandler.ButtonPressed(Buttons.B)) { return(true); } } } return(false); }
public static bool Accept(bool doMouse = true, bool doKeyBoard = true, bool doGamePad = true) { if (Core.GameInstance.IsActive) { if (doKeyBoard) { if (KeyBoardHandler.KeyPressed(Core.KeyBindings.Enter1) || KeyBoardHandler.KeyPressed(Core.KeyBindings.Enter2)) { return(true); } } if (doMouse) { if (MouseHandler.ButtonPressed(MouseHandler.MouseButtons.LeftButton)) { return(true); } } if (doGamePad) { if (ControllerHandler.ButtonPressed(Buttons.A)) { return(true); } } } return(false); }