Tobii Pro SDK C API
set_hmd_lens_configuration.c
#include <stdio.h>
void set_hmd_lens_configuration_example(TobiiResearchEyeTracker* eyetracker) {
TobiiResearchHMDLensConfiguration old_lens_configuration;
tobii_research_get_hmd_lens_configuration(eyetracker, &old_lens_configuration);
lens_configuration.left.x = 32.0f;
lens_configuration.left.y = 0.0f;
lens_configuration.left.z = 0.0f;
lens_configuration.right.x = -32.0f;
lens_configuration.right.y = 0.0f;
lens_configuration.right.z = 0.0f;
TobiiResearchStatus status = tobii_research_get_hmd_lens_configuration(eyetracker, &lens_configuration);
char* serial_number;
tobii_research_get_serial_number(eyetracker, &serial_number);
printf("Set lens configuration from tracker with serial number %s with status %i:\n", serial_number, status);
status = tobii_research_set_hmd_lens_configuration(eyetracker, &old_lens_configuration);
}