public override void HandleInput(InputState input) { PlayerIndex playerIndex; if (input.IsMenuSelect(this.ControllingPlayer, out playerIndex)) { if (this.Accepted != null) { this.Accepted((object)this, new PlayerIndexEventArgs(playerIndex)); } if (this.AcceptedClicked != null) { this.AcceptedClicked(); } this.ExitScreen(); } else if (input.IsMenuCancel(this.ControllingPlayer, out playerIndex)) { if (this.Cancelled != null) { this.Cancelled((object)this, new PlayerIndexEventArgs(playerIndex)); } if (this.CancelClicked != null) { this.CancelClicked(); } this.ExitScreen(); } GuiData.doInput(input); }
public override void HandleInput(InputState input) { base.HandleInput(input); GuiData.doInput(input); if (!Settings.debugCommandsEnabled || !Utils.keyPressed(input, Keys.F8, new PlayerIndex?())) { return; } ExitScreen(); Game1.getSingleton().Exit(); }
public override void HandleInput(InputState input) { PlayerIndex playerIndex; if (input.IsMenuSelect(ControllingPlayer, out playerIndex)) { if (Accepted != null) { Accepted(this, new PlayerIndexEventArgs(playerIndex)); } ExitScreen(); } else if (input.IsMenuCancel(ControllingPlayer, out playerIndex)) { if (Cancelled != null) { Cancelled(this, new PlayerIndexEventArgs(playerIndex)); } ExitScreen(); } GuiData.doInput(input); }
public override void HandleInput(InputState input) { base.HandleInput(input); GuiData.doInput(input); }
public static void doInput(InputState input) { GuiData.doInput(); GuiData.lastInput = input; }