/* a callback handler could look like this: */ void my_key_handler(struct s3d_evt *event_data) { ... }