#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#if _WIN32 || _WIN64
#include <windows.h>
static void sleep_ms(int time) {
Sleep(time);
}
#else
#include <unistd.h>
static void sleep_ms(int time) {
usleep(time * 1000);
}
#endif
memcpy(user_data, gaze_data, sizeof(*gaze_data));
}
char* serial_number;
printf("Subscribing to gaze data for eye tracker with serial number %s.\n", serial_number);
return;
sleep_ms(2000);
printf("Unsubscribed from gaze data with status %i.\n", status);
printf("Last received gaze package:\n");
printf("Left eye 2D gaze point on display area: (%f, %f)\n",
printf("Right eye 3d gaze origin in user coordinates (%f, %f, %f)\n",
sleep_ms(2000);
}