public override void HandleInput(InputState input) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { MessageBoxScreen alert = new MessageBoxScreen("Warnning"); alert.ok.Selected += alertOk; alert.cancel.Selected += alertCancel; ScreenManager.AddScreen(alert, null); } else base.HandleInput(input); }
public override void HandleInput(InputState input) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { MessageBoxScreen alert = new MessageBoxScreen("Warnning"); alert.ok.Selected += alertOk; alert.cancel.Selected += alertCancel; ScreenManager.AddScreen(alert, null); } else { base.HandleInput(input); } }