Home Forums Eye Tracking Devices Tobii EyeX Linux? Reply To: Tobii EyeX Linux?

Grant [Tobii]

Hi @my5tery, as described on Page 25 of tobii_stream_engine_api.pdf the position_xy is an array of two floats, for the horizontal (x) and vertical (y) screen coordinate of the gaze point and is called in the code above at this junction:

void gaze_point_callback( tobii_gaze_point_t const* gaze_point, void* user_data )
    if( gaze_point->validity == TOBII_VALIDITY_VALID )
        printf( "Gaze point: %f, %f\n",
            gaze_point->position_xy[ 0 ],
            gaze_point->position_xy[ 1 ] );