private void OnGetCalibrationCompleted(Calibration calibration, Tobii.Gaze.Core.ErrorCode errorCode) { LookAndPlayForm.Program.datosCompartidos.calibrationDataEyeX = calibration; CalibrationError errorCalibracion = new CalibrationError(LookAndPlayForm.Program.datosCompartidos.calibrationDataEyeX.GetCalibrationPointDataItems()); LookAndPlayForm.Program.datosCompartidos.meanCalibrationErrorLeftPx = errorCalibracion.meanCalibrationErrorLeftPx; LookAndPlayForm.Program.datosCompartidos.meanCalibrationErrorRightPx = errorCalibracion.meanCalibrationErrorRightPx; Console.WriteLine("EyetrackingEngine.OnGetCalibrationCompleted. errorCode: " + errorCode.ToString() + "error: " + errorCalibracion.meanCalibrationErrorLeftPx.ToString() + ", " + errorCalibracion.meanCalibrationErrorRightPx.ToString()); if (OnGetCalibrationCompletedEvent != null) { OnGetCalibrationCompletedEvent(this, new CalibrationReadyEventArgs(errorCalibracion.CalibrationPointDataL)); } }
private void OnDeviceInfoCompleted(DeviceInfo deviceInfo, Tobii.Gaze.Core.ErrorCode errorCode) { LookAndPlayForm.Program.datosCompartidos.EyeTrackerInfo = deviceInfo.Model; }