cf_app_push_event¶
Category: app
GitHub: cute_app.h
Queues an SDL event for the app to process on the next update tick.
| Parameters | Description |
|---|---|
sdl_event |
Pointer to an SDL_Event. |
| The event is copied into an internal queue. |
Remarks¶
This is only needed when using SDL's main callbacks (SDL_MAIN_USE_CALLBACKS).
Every event received in SDL_AppEvent should be forwarded here.
Queued events are still handled the same way as a traditional main loop: at cf_app_update.