void al_unregister_event_source(ALLEGRO_EVENT_QUEUE *queue,
Introduced in 5.0.0

Unregister an event source with an event queue. If the event source is not actually registered with the event queue, nothing happens.

If the queue had any events in it which originated from the event source, they will no longer be in the queue after this call.

See also: al_register_event_source

Examples: ex_native_filechooser

Most helpful discussions: