Пример #1
0
        public InputOptionsForm(
            NesCore.Console console,
            KeyboardState keyboardState,
            MouseState mouseState,
            GameControllerManager gameControllerManager)
        {
            InitializeComponent();

            this.console               = console;
            this.keyboardState         = keyboardState;
            this.mouseState            = mouseState;
            this.gameControllerManager = gameControllerManager;
        }
Пример #2
0
        public JoypadConfigurationForm(JoypadSettings joypadSettings,
                                       KeyboardState keyboardState,
                                       GameControllerManager gameControllerManager)
        {
            InitializeComponent();

            this.joypadSettings          = joypadSettings;
            this.joypadConfigState       = JoypadConfigState.Start;
            this.keyboardState           = keyboardState;
            this.gameControllerManager   = gameControllerManager;
            this.configurationLabel.Text = "Press Start";

            foreach (GameController gameController in gameControllerManager.Controllers)
            {
                gameController.ButtonPressed += OnControllerButtonPressed;
            }
        }