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; }
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; }