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); } }
private void OperatorInputProcessor(Type t, OperatorInputMsg msg) { _inputModuleCollection?.SendInput(msg.Arg); }