Reads an event from an event queue.
This function is called by the user to read an event. The event is copied from the event queue to the stream handle for the user to read using the HAL functions. The event is marked as read for deletion and cannot be read by the user again.
Stream to store the current event
Event structure - the event information is returned in this structure
Time in milliseconds to wait for an event
Referenced by main().