[−][src]Function libeyelink_sys::exit_calibration
pub unsafe extern "C" fn exit_calibration()
CALIBRATION, DRIFT CORRECTION CONTROL Call this to stop calibration/drift correction in progress This could be called from a Windows message handler This function should be called from an message or event handler if an ongoing call to \c do_drift_correct() or \c do_tracker_setup() should return immediately.
\b Example:
\code #includeswitch (message) { case WM_KEYDOWN: case WM_CHAR: { UINT16 key = process_key_messages(hwnd, message, wparam, lparam); eyemsg_printf("key %d", key); if (key == 0x5100 && (eyelink_current_mode() & IN_SETUP_MODE)) exit_calibration(); break; } ... } \endcode
\sa \c do_tracker_setup(), \c do_drift_correct() and \c eyelink_current_mode()