SCUI_Client_HandleEvent()

Checks if the event is Scoreloop related event.

Synopsis:

#include <scoreloop/scui_client.h>
 
SC_Bool_t SCUI_Client_HandleEvent(SCUI_Client_h self, bps_event_t *event)

Arguments:

self

An opaque handle for the current SCUI_client instance.

event

The BPS event to handle

Library:

libscoreloopcore

Description:

This method checks for Scoreloop related events from all the BPS events. Call this method in the main loop and pass the bps_events to the handler. Your event loop could look similar to the following:

bps_event_t *event;

// get an event
bps_get_event(&event, -1); // blocking

// pass events to SC_Client as before
// (should already exists in your code, if not refer to Initialization section)
SC_HandleBPSEvent(palInitData, event);

// pass events to the SCUI_Client
SCUI_Client_HandleEvent(uiClient, event);

Returns:

SC_Bool_t SC_TRUE if it was a Scoreloop-related event, SC_FALSE otherwise

Last modified: 2013-12-23

comments powered by Disqus