Tobii Pro SDK C API
get_hmd_lens_configuration.c
#include <stdio.h>
void get_hmd_lens_configuration_example(TobiiResearchEyeTracker* eyetracker) {
TobiiResearchStatus status = tobii_research_get_hmd_lens_configuration(eyetracker, &lens_configuration);
char* serial_number;
tobii_research_get_serial_number(eyetracker, &serial_number);
printf("Got lens configuration from tracker with serial number %s with status %i:\n", serial_number, status);
printf("Left: (%f, %f, %f)\n",
lens_configuration.left.x,
lens_configuration.left.y,
lens_configuration.left.z);
printf("Right: (%f, %f, %f)\n",
lens_configuration.right.x,
lens_configuration.right.y,
lens_configuration.right.z);
}