Пример #1
0
 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());
     }
 }
Пример #2
0
 public void StartTracking()
 {
     _recording.Disposable = GazeSource.Subscribe(gz => GazeDataReceived?.Invoke(this, gz));
 }