GrPeekEvent()

Name

GrPeekEvent() -- Peek an event from the queue

Synopsis

int GrPeekEvent ( GR_EVENT * ep );

Description

This function retrieves the next nano-X event from the event queue without actually removing the event from the queue. The retrieved event is returned in the caller supplied GR_EVENT structure. If the event queue is empty, the function will return with an event type of GR_EVENT_TYPE_NONE.

Parameters

TypeNameDescription
GR_EVENT*epPointer to the caller supplied structure to receive the next event from the event queue.

Returns

1 if an event is returned from the queue, 0 if the queue was empty.

See Also

GrSelectEvents(), GrGetNextEvent(), GrGetNextEventTimeout(), GrCheckNextEvent(), GrMainLoop().