[][src]Function libeyelink_sys::check_recording

pub unsafe extern "C" fn check_recording() -> INT16

Check if we are recording: if not, report an error * Also calls record_abort_hide() if recording aborted * Returns 0 if recording in progress * Returns ABORT_EXPT if link disconnected * Handles recors abort menu if trial interrupted * Returns TRIAL_ERROR if other non-recording state * Typical use is * if((error=check_recording())!=0) return error; * Check if we are recording: if not, report an error. Call this function while recording. It will return \c 0 if recording is still in progress, or an error code if not. It will also handle the EyeLink Abort menu by calling \c record_abort_handler(). Any errors returned by this function should be returned by the trial function. On error, this will disable realtime mode and restore the heuristic.

@return TRIAL_OK (0) if no error.\n REPEAT_TRIAL, SKIP_TRIAL, ABORT_EXPT, TRIAL_ERROR if recording aborted.

\b Example: See \c start_recording()

\sa \c check_record_exit(), \c eyelink_abort(), \c start_recording() and \c stop_recording()