예제 #1
0
        static void Main(string[] args)
        {
            var scaleFactor = GetScaleFactor();
            var fps         = GetFPS();
            var recorder    = new Recorder(scaleFactor, fps);

            recorder.Start(3000);

            var commandListener = new CommandListener();

            commandListener.Start(3001);
            commandListener.OnMouseDown = OnMouseDown;
            commandListener.OnMouseUp   = OnMouseUp;
            commandListener.ListenForCommands();

            Console.WriteLine("Server started! Listening for connections...");
            Console.ReadLine();
        }