PsychHID(‘KbQueueCheck’)
Psychtoolbox>PsychHID.{mex*} subfunction
[keyIsDown, firstKeyPressTimes, firstKeyReleaseTimes, lastKeyPressTimes, lastKeyReleaseTimes]=PsychHID(‘KbQueueCheck’ [, deviceIndex])
Checks a queue for keyboard or button events generated by a device.
PsychHID(‘KbQueueCreate’) must be called before this routine and
PsychHID(‘KbQueueStart’) must then be called for any events to be returned.
The optional ‘deviceIndex’ is the index of the HID input device whose queue
should be checked. If omitted, the queue of the default device will be checked.
###See also: KbQueueCreate, KbQueueStart, KbQueueStop, KbQueueFlush, KbQueueRelease