FlushEvents(['mouseUp'],['mouseDown'],['keyDown'],['autoKey'],['update'],...)
Remove events from the system event queue.
Removes all events of the specified types from the event queue.
The arguments can be in any order. Empty strings are ignored.
FlushEvents will accept all arguments, but only 'keyDown' (or no
argument at all) removes keypress events. Events other than keypress
events are not supported.
FlushEvents,
GetChar and
CharAvail are not supported under GNU/Octave or
under Matlab running in -nojvm mode, except for the Microsoft Windows
version.
See also:
GetChar,
CharAvail,
FlushEvents,
EventAvail.
Psychtoolbox/PsychBasic/FlushEvents.m