Пример #1
0
        public InputProcessor(CommandProcesser commandProcesser, GameWindow window)
        {
            this.commandProcesser = commandProcesser;
            isActive = false;
            CommandHistory = new CommandHistory();
            Out = new List<OutputLine>();
            Buffer = new OutputLine("", OutputLineType.Command);

            Form winGameWindow = GetGameWindow();
            winGameWindow.KeyPress += form_KeyPress;
            winGameWindow.KeyDown += EventInput_KeyDown;
        }
Пример #2
0
        public InputProcessor(CommandProcesser commandProcesser, GameWindow window)
        {
            this.commandProcesser = commandProcesser;
            isActive       = false;
            CommandHistory = new CommandHistory();
            Out            = new List <OutputLine>();
            Buffer         = new OutputLine("", OutputLineType.Command);

            Form winGameWindow = GetGameWindow();

            winGameWindow.KeyPress += form_KeyPress;
            winGameWindow.KeyDown  += EventInput_KeyDown;
        }