4 * Handle events for non-GUI based applications
13 /* Check any expired timers */
14 W_CheckTimerHandlers();
16 /* Do idle and timer stuff while there are no input events */
17 /* Do not wait for input here. just peek to see if input is available */
18 while (!W_HandleInputEvents(False
, -1) && W_CheckIdleHandlers()) {
19 /* dispatch timer events */
20 W_CheckTimerHandlers();
23 W_HandleInputEvents(True
, -1);
25 /* Check any expired timers */
26 W_CheckTimerHandlers();