[][src]Function libeyelink_sys::escape_pressed

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

@ingroup keyinput This function tests if the 'ESC' key is held down, and is usually used to break out of nested loops. This does not allow processing of Windows messages, unlike \c getkey().

@remarks Warning: Under Windows XP, this call will not work in realtime mode at all, and will take several seconds to respond if graphics are being drawn continuously. This function works well in realtime mode under Windows 2000. @return \c 1 if 'ESC' key held down; \c 0 if not.

\b Example: See \c break_pressed()

\sa \c break_pressed(), \c getkey() and \c echo_key()