private void Tracker_GazeDataReceived(object sender, Tobii.Research.GazeDataEventArgs e) { try { GazeDataReceived?.Invoke(this, e.ToGazeData()); } catch (Exception exception) { Debug.WriteLine("Something bad happened when data came from Tobii device"); Debug.WriteLine(exception.ToString()); } }
public void StartTracking() { _recording.Disposable = GazeSource.Subscribe(gz => GazeDataReceived?.Invoke(this, gz)); }