Esempio n. 1
0
        public static Result StopRecording()
        {
            if (!IsRecording)
            {
                return(null);
            }

            KeyListener.Stop();
            NestopiaListener.Stop();

            time.Stop();

            IsRecording = false;

            return(new Result(time.ElapsedPrecise(), events.AsReadOnly()));
        }
Esempio n. 2
0
        public static void StartRecording()
        {
            if (IsRecording)
            {
                StopRecording();
            }

            events = new List <Event>();

            time?.Stop();
            time = new Stopwatch();
            time.Start();

            IsRecording = true;

            KeyListener.Start();
            NestopiaListener.Start();
        }