public InputProcessor(CommandProcesser commandProcesser) { this.commandProcesser = commandProcesser; isActive = false; CommandHistory = new CommandHistory(); Out = new List<OutputLine>(); Buffer = new OutputLine("", OutputLineType.Command); var inputManager = (IInputManager)Core.Engine.Instance.Game.Services.GetService(typeof(IInputManager)); inputManager.KeyDown += new InputManager.KeyEventHandler(OnKeyDown); }
public InputProcessor(CommandProcesser commandProcesser) { this.commandProcesser = commandProcesser; isActive = false; CommandHistory = new CommandHistory(); Out = new List <OutputLine>(); Buffer = new OutputLine("", OutputLineType.Command); var inputManager = (IInputManager)Core.Engine.Instance.Game.Services.GetService(typeof(IInputManager)); inputManager.KeyDown += new InputManager.KeyEventHandler(OnKeyDown); }