[−][src]Function libeyelink_sys::eyelink_user_menu_selection
pub unsafe extern "C" fn eyelink_user_menu_selection() -> INT16
@ingroup eyelink_mode Checks for a user-menu selection, clears response for next call.
@return \c 0 if no selection made since last call, else code of selection.
\b Example:
\code #includeint i; i = eyelink_current_mode(); if(i & IN_USER_MENU) // handle user menu selections { switch(eyelink_user_menu_selection() { case 1: // SETUP selected break; case 2: // REPEAT trial return REPEAT_TRIAL; case 3: // SKIP trial return SKIP_TRIAL; case 4: // Abort experiment eyelink_abort();// this cleans up by erasing menu return ABORT_EXPT; default: // no selection: continue break; } } \endcode
\sa \c eyelink_current_mode()