static void EyetrackerFound(object sender, EyetrackerInfoEventArgs e) { EyetrackerConnector connector = new EyetrackerConnector(e.EyetrackerInfo); connector.Connect(); // sync CPU and Eyetracker clocks SyncManager syncManager = new SyncManager(clock, e.EyetrackerInfo, EventThreadingOptions.BackgroundThread); // detect fixations GazeDataFixationHandler fixations = new GazeDataFixationHandler(syncManager); connector.AddGazeDataHandler(fixations.GazeDataReceived); // print to console GazeDataConsolePrintHandler printer = new GazeDataConsolePrintHandler(syncManager); //connector.AddGazeDataHandler(printer.GazeDataReceived); fixations.FixationDetector.FixationEnd += printer.FixationEnd; }