glview_register_event_callback()

Register a callback to be fired for every event the app receives.

Synopsis:

#include <glview/glview.h>
 
GLVIEW_API int glview_register_event_callback(event_callback event_callback)

Arguments:

event_callback

The callback to be fired on an event. If this parameter is NULL then any previously set callback is disabled.

Library:

libglview

Description:

Calling glview_register_event_callback() with a NULL event callback will disable any previously set callback from being fired on an event.

Returns:

GLVIEW_SUCCESS