Files
wmaker/WINGs/wutil.c
T

30 lines
558 B
C
Raw Normal View History

/*
* Handle events for non-GUI based applications
*/
#include "WINGsP.h"
void
1999-09-10 20:13:44 +00:00
WHandleEvents()
{
/* Check any expired timers */
W_CheckTimerHandlers();
/* Do idle and timer stuff while there are no input events */
/* Do not wait for input here. just peek to se if input is available */
while (!W_HandleInputEvents(False, -1) && W_CheckIdleHandlers()) {
1999-09-10 20:13:44 +00:00
/* dispatch timer events */
W_CheckTimerHandlers();
}
W_HandleInputEvents(True, -1);
1999-09-10 20:13:44 +00:00
/* Check any expired timers */
W_CheckTimerHandlers();
}