[][src]Function libeyelink_sys::eyelink_event_data_flags

pub unsafe extern "C" fn eyelink_event_data_flags() -> UINT16

@ingroup messaging Returns the event data content flags.

@remarks This will be \c 0 if the data being read from queue is not in a block with events. @return Event data content flags: \c EVENT_VELOCITY if has velocity data. \c EVENT_PUPILSIZE if has pupil size data. \c EVENT_GAZERES if has gaze resolution. \c EVENT_STATUS if has status flags. \c EVENT_GAZEXY if has gaze xy position. \c EVENT_HREFXY if has head-ref xy position. \c EVENT_PUPILXY if has pupil xy position. \c FIX_AVG_ONLY if only avg. data to fixation events. \c START_TIME_ONLY if only start-time in start events. \c PARSEDBY_GAZE if how events were generated. \c PARSEDBY_HREF. \c PARSEDBY_PUPIL.

\b Example:

\code

#include 
#include 
int error;

error = start_recording(1,1,1,0);
if(error != 0) return error;   // ERROR: couldn't start recording

if(!eyelink_wait_for_data(100, 1, 0))
{
printf("ERROR: No link samples received!");
return -1;
}

emsg_printf("Event data%d Event type %d",
eyelink_event_data_flags(), eyelink_event_type_flags());
\endcode

\b Output:

\code
MSG	2689937 Event data 26316 Event type 29760
\endcode

\sa \c eyelink_event_type_flags()