Handle click on widget
#include <s3dw.h>
int s3dw_handle_click(const struct s3d_evt *event);
If you want your widgets on mouseclicks (believe me, you want that), you have to call this either in your clickhandler-function or specify it itself as the clickhandler.
 // way 1:
 s3d_set_callback(S3D_EVENT_OBJ_CLICK,s3dw_handle_click);
 // way 2:
 ...
 void click(struct s3d_evt *evt)
 {
         s3dw_handle_click(evt);
         ....
         // your own clickhandler code
         ...
 }
 ....
 s3d_set_callback(S3D_EVENT_OBJ_CLICK,click);
        Simon Wunderlich
Author of s3d