Name
hw_WaitEvents -- wait for events (V6.0)
Synopsis
int error = hw_WaitEvents(lua_State *L, ULONG flags);
Function
This function halts the program execution until one or more events come in. This can be useful if you need to set up a temporary modal event loop. The following flags are currently recognized by this function:

HWWEFLAGS_MODAL:
Signals that hw_WaitEvents() is called from a temporary modal event loop. This flag should always be set.

Once hw_WaitEvents() returns, you should immediately call hw_HandleEvents().

Designer compatibility
Unsupported

Inputs
L
pointer to the lua_State
flags
combination of flags (see above)
Results
error
error code or 0 for success

Show TOC