Query: s3d_set_callback
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
S3D_SET_CALLBACK(3) s3d Manual S3D_SET_CALLBACK(3)NAMEs3d_set_callback - sets a callbackSYNOPSIS#include <s3d.h> void s3d_set_callback(uint8_t event, s3d_cb func);DESCRIPTIONSets a callback for a certain event. this is very useful for event-oriented applications. event callbacks will not interrupt each other or the mainloop. Warning Defining callbacks will only work after calling s3d_init() #include <inttypes.h> void obj_click(struct s3d_evt event) { printf("object id %"PRIu32" got clicked", *((uint32_t *)event->buf)); } ... s3d_set_callback(S3D_EVENT_NEW_OBJECT, obj_click); // this will tell you when a object got clickedAUTHORSimon Wunderlich Author of s3d s3d S3D_SET_CALLBACK(3)
| Related Man Pages |
|---|
| eventhandler(9) - debian |
| eventhandler_register(9) - debian |
| eventhandler_find_list(9) - debian |
| eventhandler_prune_list(9) - debian |
| __pmafunregister(3) - centos |
| Similar Topics in the Unix Linux Community |
|---|
| Installing Dash Shell on OS X Lion |
| How can I do this in VI editor? |
| Weird 'find' results |
| A (ksh) Library For and From UNIX.com |
| My first PERL incarnation... Audio Oscillograph |