// return 0 if you want to block this event static int handle_buttons(struct event * event) { if (event->type != 0) return 1; // only handle events with type=0 (buttons) if (handle_common_events_startup(event) == 0) return 0; extern int ml_started; if (!ml_started) return 1; if (handle_common_events_by_feature(event) == 0) return 0; return 1; }
// return 0 if you want to block this event static int handle_buttons(struct event * event) { if (event->type != 0) return 1; // only handle events with type=0 (buttons) if (handle_common_events_startup(event) == 0) return 0; extern int ml_started; if (!ml_started) return 1; if (handle_common_events_by_feature(event) == 0) return 0; if (event->param == BGMT_LV && recording) { extern int movie_was_stopped_by_set; movie_was_stopped_by_set = 1; } return 1; }