SC_HandleCustomEvent()
Continue processing of Scoreloop code when using SC_RUN_LOOP_TYPE_CUSTOM.
Synopsis:
#include <scoreloop/sc_init.h>
void SC_HandleCustomEvent(SC_InitData_t *initData, SC_Bool_t blockIfNeeded)
Arguments:
- initData
-
A pointer to the init data
- blockIfNeeded
-
Either SC_TRUE if you want this method to block or SC_FALSE otherwise
Library:
libscoreloopcoreDescription:
You have to call this method regularly in your own run loop so that Scoreloop callbacks can be invoked when asynchronous replies come in from the servers. Your event loop should look like this:
for (;;) {
// Scoreloop event handling
SC_HandleCustomEvent(&initData, SC_FALSE); // SC_FALSE will not block here, SC_TRUE will
// Other event handling here
...
}