コード例 #1
0
ファイル: InputProcessor.cs プロジェクト: Cyberbanan/voxeliq
        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);
        }
コード例 #2
0
        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);
        }