EventQueue

The event queue stores a stack of events as they occur. You can check to see if an event is available with the Peek function, and if it is then call the Wait function to retrieve.

Functions