al_flush_event_queue
void al_flush_event_queue(ALLEGRO_EVENT_QUEUE *queue)
Introduced in 5.0.0
Drops all events, if any, from the queue.
See also: al_drop_next_event, al_is_event_queue_empty
Examples: ex_vsync
Most helpful discussions:
- [A5] Clearing Keyboard Buffer/Event Queue (1)
- ALLEGRO_EVENT_DISPLAY_SWITCH_OUT
- Delay on event queue while on thread
- why is my code failing
- Weird flex with my Bitmaps on my Screen
- Allegro 5 basic game loop
- Creating a Allegro 5 equivalent to _kbhit()
- Mixing Allegro 5 with OPENGL
- Characters missing after al_get_text_width()
- Keyboard input trought allegro
Other recent discussions:
- How to stop events from being detected?
- Restart program/ resize screen
- Floodfill...ish... math.
- How to puase a game for a few seconds
- [A5] pixel alpha // al_put_pixel() ?! game loop
- Getting user input in allegro 5
- FPS Timer Class not working
- A5 program doesn't work after computer suspend
- [A5] iOS - Touch Events non-functonal when game resumes from hibernation
- how to get mickeys to work with unlimited mouse movement range