al_register_event_source
void al_register_event_source(ALLEGRO_EVENT_QUEUE *queue,
ALLEGRO_EVENT_SOURCE *source)
Introduced in 5.0.0
Register the event source with the event queue specified. An event source may be registered with any number of event queues simultaneously, or none. Trying to register an event source with the same event queue more than once does nothing.
See also: al_unregister_event_source, ALLEGRO_EVENT_SOURCE
Examples: ex_audio_simple, ex_bitmap, ex_bitmap_flip, ex_bitmap_target, ex_blend, ex_blend_test, ex_blit, ex_clip, ex_curl, ex_disable_screensaver, ex_display_options, ex_draw, ex_draw_bitmap, ex_dualies, ex_expose, ex_filter, ex_font, ex_fs_resize, ex_fs_window, ex_gldepth, ex_glext, ex_haiku, ex_icon, ex_iphone, ex_joystick_events, ex_joystick_hotplugging, ex_keyboard_events, ex_lines, ex_lockbitmap, ex_logo, ex_membmp, ex_mixer_pp, ex_mouse_cursor, ex_mouse_events, ex_multisample, ex_multiwin, ex_native_filechooser, ex_noframe, ex_ogre3d, ex_opengl, ex_physfs, ex_premulalpha, ex_prim, ex_resize, ex_resize2, ex_rotate, ex_saw, ex_scale, ex_stream_file, ex_stream_seek, ex_subbitmap, ex_threads, ex_threads2, ex_timedwait, ex_timer, ex_transform, ex_ttf, ex_user_events, ex_vsync, ex_warp_mouse, ex_windows, ex_winfull
Most helpful discussions:
- Key-presses speed-up program
- window icon
- ALLEGRO_EVENT_DISPLAY_SWITCH_OUT
- Math question (2d trig)
- Black stripe with menus on Windows
- Keyboard Modifiers flag on Windows?
- Window Resize??
- Multiple threads/displays, Event handling question
- I am looking for correct detailed instructions how to build Allegro....
- Delay on event queue while on thread
Other recent discussions:
- Is there a way to wait before drawing a bitmap in Allegro5?
- Getting Allegro to Play Nice with Windows Scaling Settings
- Difficulty compiling on Windows
- Screen is cleared and a new one appears Allegro5 in C?
- allegro5 video streaming plugin: how to loop without stutter?
- A little bit of fun for family and friends
- Builtin font doesn't work in resizeable display on windows
- KrampusHack 2020: Odd Results With Color Mapping Functions
- Mouse Addon causing program crash
- Problem solved: memory bitmaps not being converted