handler.c 514 B

12345678910111213141516171819
  1. #include "main.h"
  2. bool scene_handler_event_forwarder(void* context, uint32_t event_id) {
  3. App* app = (App*)context;
  4. if(app == NULL || app->scene_manager == NULL) {
  5. return false;
  6. }
  7. return scene_manager_handle_custom_event(app->scene_manager, event_id);
  8. }
  9. bool scene_handler_navigation_forwarder(void* context) {
  10. App* app = (App*)context;
  11. if(app == NULL || app->scene_manager == NULL) {
  12. return false;
  13. }
  14. return scene_manager_handle_back_event(app->scene_manager);
  15. }