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