Functions | |
void | Flush_All_Events (void) |
void Flush_All_Events | ( | void | ) |
Empties out the queue of pending input events.
Note, the system always automatically discards Selection-type events on segments that no longer exist or are no longer visible or selectable. If Selection events are the only kind that can possibly be in the queue, and if the "major new substate" involves making everything invisible, unselectable, or deleted, then you won't need to explicitly flush events.
NOTE
The "current" event is also discarded.