Пример #1
0
 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
 }
Пример #2
0
 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
 }