/// <summary> /// Periodically reports statistics from an active VR API connection. /// </summary> /// <param name="vr"></param> /// <param name="pollInterval"></param> public VRObserver(VRConnection vr, int pollInterval = 150) { VR = vr ?? throw new Exception("null VR connection."); PollInterval = pollInterval; Worker.DoWork += DoWork; Worker.ProgressChanged += Worker_ProgressChanged; Worker.WorkerReportsProgress = true; }
public void SetVRConnection(VRConnection vr) { VR = vr ?? throw new Exception("null VR connection."); }