TouchEventFlush

>Psychtoolbox>PsychBasic

nflushed = TouchEventFlush(deviceIndex)

Flush event buffer of a touch queue. This removes all stored events
from the event buffer of a given queue. It returns the number of
removed events in the optional return argument ‘nflushed’.

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychBasic/TouchEventFlush.m