---
name: "al_drop_next_event"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_drop_next_event/3alleg5"
---

# al\_drop\_next\_event(3alleg5)

Allegro 5 API

## NAME

al\_drop\_next\_event - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_drop_next_event(ALLEGRO_EVENT_QUEUE *queue)
  ```

## DESCRIPTION

Drop (remove) the next event from the queue. If the queue is empty, nothing happens. Returns true if an event was dropped.

## SEE ALSO

al\_flush\_event\_queue(3alleg5), al\_is\_event\_queue\_empty(3alleg5)
