static void Main(string[] args) { JsonSerializer serializer = new JsonSerializer(); var finder = new UXC.Devices.EyeTracker.TobiiPro.TobiiProFinder(); var config = new EyeTrackerConfiguration(); var modules = new NullModulesService(); var browser = new TrackerBrowser(new List <ITrackerFinder>() { finder }, config, modules); var device = new EyeTrackerDevice(browser); bool connected = device.ConnectToDevice(); device.Log += Device_Log; if (connected) { device.DumpInfo(); device.DisconnectDevice(); Console.ReadLine(); } else { Console.WriteLine("Failed to connect to tracker."); } }
/// <summary> /// The static dispose. /// </summary> public static void StaticDispose() { TrackerBrowser.Stop(); }