Back to main

 

Function 10 - wait for an event

If the message queue is empty, then it waits for a message in the queue. In this state, the thread does not receive CPU time. Then reads the message from the queue.

 

Options:

  * eax = 10 - function number

Return value:

  * eax = event (see event list)

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 check if there is a message in the queue, use function 11. To wait no more than a certain time, use function 23.

 

Constants for registers:

  eax - SF_WAIT_EVENT (10)