ALLEGRO_EVENT_SOURCE
typedef struct ALLEGRO_EVENT_SOURCE ALLEGRO_EVENT_SOURCE;
Introduced in 5.0.0
An event source is any object which can generate events. For example, an ALLEGRO_DISPLAY can generate events, and you can get the ALLEGRO_EVENT_SOURCE pointer from an ALLEGRO_DISPLAY with al_get_display_event_source.
You may create your own "user" event sources that emit custom events.
See also: ALLEGRO_EVENT, al_init_user_event_source, al_emit_user_event
Examples: ex_native_filechooser, ex_user_events
Most helpful discussions:
- Redrawing smoothly while display is being resized
- Joystick Event Injection
- Help needed installing agui library
- ALLEGRO_RESIZABLE & Mouse Pointer Collision Detection
- Tic
- Listeners, threads, synchronization
- Crash in d3d_shutdown
- GUI Basics? (AGUI)
- ALLEGRO_HAPTIC or force feedback for Allegro
- [A5] User Event are giving me a hard time.
Other recent discussions:
- [A5] simulate_keypress()?
- user event ref counting problem
- game crashing on al_wait_for_event callee
- Generating timer event
- [A5] ideas on how to handle timers/user events/expose events in a widget class.
- menu selection changing
- Is it possible to generate keyboard events when running in the background?
- Allegro 5 threads
- custom events
- User Events?