nflushed = KbQueueFlush([deviceIndex][flushType=1])
Flush KbQueue and/or KbQueue event buffer. By default, if flushType is
omitted, only the KbQueues events are deleted. Other ‘flushTypes’ affect
the KbQueue event buffer, but rather use the KbEventFlush() function to
If ‘flushType’ is 0, only the number of currently queued events will be
If ‘flushType’ is 1, only events returned by KbQueueCheck will be flushed. This
is the default.
If ‘flushType’ is 2, only events returned by KbEventGet will be flushed.
If ‘flushType’ is 4, only the number of key-press events with valid, mapped ASCII
CookedKey field will be returned.
Removes all unprocessed events from the queue and zeros out any already