List of events
Next event can be retrieved by the call of one from functions 10
(to wait for event), 11 (to check without waiting), 23
(to wait during the given time).
These functions return only those events, which enter into a mask set
by function 40. By default it is first three,
there is enough for most applications.
Codes of events:
- 1 = redraw event (is reset by call to function 0)
- 2 = key on keyboard is pressed (acts, only when the window is
active) or hotkey is pressed; is reset, when all keys from
the buffer are read out by function 2
- 3 = button is pressed, defined earlier by function 8
(or close button, created implicitly by function 0;
minimize button is handled by the system and sends no message;
acts, only when the window is active;
is reset when all buttons from the buffer
are read out by function 17)
- 4 = reserved (in current implementation never comes even after
unmasking by function 40)
- 5 = the desktop background is redrawed (is reset automatically
after redraw, so if in redraw time program does not wait and
does not check events, it will not remark this event)
- 6 = mouse event (something happened - button pressing or moving;
is reset at reading)
- 7 = IPC event (see function 60 -
Inter Process Communication; is reset at reading)
- 8 = network event (is reset at reading)
- 9 = debug event (is reset at reading; see
debug subsystem)
- 16..31 = event with appropriate IRQ
(16=IRQ0, 31=IRQ15) (is reset after reading all IRQ data)