예제 #1
0
 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);
 }
예제 #2
0
 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);
     }
 }