Пример #1
0
 private void AddMainMenuControl()
 {
     controlCommands[1] = new Command(() => game.BackToMenu());
     controlCommands[1].Add(new KeyTrigger(Key.Escape, State.Releasing));
     controlCommands[1].Add(new GamePadButtonTrigger(GamePadButton.B, State.Releasing));
     commandsInUse++;
 }