Peek

This function is used to check if any events are being stored in the event queue.

Syntax

Returns

Returns true if an event is available, otherwise false is returned.