예제 #1
0
 protected void OnBackPressed(object source, InputStateEventArgs args)
 {
     if ((args.PlayerIndex == PlayerControllerIndex.Keyboard || args.PlayerIndex == PlayerControllerIndex.One) &&
         args.Button == InputKeys.Back)
     {
         server.GoToScoresScreen();
     }
 }
예제 #2
0
 public static void RaiseReleasedEvent(object source, InputStateEventArgs args)
 {
     Released?.Invoke(source, args);
 }