public InputProcessor(CommandProcesser commandProcesser) { this.commandProcesser = commandProcesser; isActive = false; CommandHistory = new CommandHistory(); Out = new List <OutputLine>(); Buffer = new OutputLine("", OutputLineType.Command); EventInput.CharEntered += EventInput_CharEntered; //Handles the typable characters EventInput.KeyDown += EventInput_KeyDown; //Handles the non-typable characters }
public InputProcessor(CommandProcesser commandProcesser) { this.commandProcesser = commandProcesser; isActive = false; CommandHistory = new CommandHistory(); Out = new List<OutputLine>(); Buffer = new OutputLine("", OutputLineType.Command); EventInput.CharEntered += EventInput_CharEntered; //Handles the typable characters EventInput.KeyDown += EventInput_KeyDown; //Handles the non-typable characters }