Back to main

 

Function 11 - check if there is an event, without waiting

 

If there is an event in the message queue, it reads and returns it. If the queue is empty, returns zero.

Options:

  * eax = 11 - function number

Return value:

  * eax = 0 - the message queue is empty

  * otherwise eax = event (see the list of events)

Remarks:

  * Only those events that are included in the mask set by function 40 are taken into account. By default, these are redrawing events, pressing keys and buttons.

  * To wait for an event in the queue, use function 10. To wait no more than a certain time, use function 23.

 

Constants for registers:

  eax - SF_CHECK_EVENT (11)