Beispiel #1
0
        public void HandleUserInput()
        {
            var(CursorLeft, CursorTop) = (Console.CursorLeft, Console.CursorTop);

            while (true)
            {
                var key = Console.ReadKey();
                var arg = new OperatorInputEventArg(key, KeyInputType.KeyPress);
                var msg = new OperatorInputMsg(this, arg);
                _ardClient.MessageHub.EnqueueMessage(msg);

                Console.SetCursorPosition(CursorLeft, CursorTop);
            }
        }
Beispiel #2
0
 private void OperatorInputProcessor(Type t, OperatorInputMsg msg)
 {
     _inputModuleCollection?.SendInput(msg.Arg);
 }