al_peek_next_event(3)
π¦ al_peek_next_event(3) π¦
Hey bestie, welcome to the Library Functions Manual β this page is from the Allegro 5 API, and itβs lowkey iconic for anyone whoβs ever wanted to look at an event without actually removing it. πβ¨
β¨ NAME β¨
al_peek_next_event β Allegro 5 API. The function that lets you peek at the next event like a nosy bestie, no cap. π
π SYNOPSIS π
#include <allegro5/allegro.h>
bool al_peek_next_event(ALLEGRO_EVENT_QUEUE *queue, ALLEGRO_EVENT *ret_event)
π DESCRIPTION π
Okay so hereβs the tea: al_peek_next_event copies the contents of the next event in the event queue you specified into ret_event, and then it returns true. β¨ The original event packet stays right at the head of the queue β it does not get removed, so everyone can keep looking at it. Iconic behavior, honestly.
If the event queue is actually empty, this function returns false, and the contents of ret_event are unspecified β so donβt trust whateverβs chilling in there, bestie. ππ
π SEE ALSO π
Okay thatβs the whole vibe! π Source/version: Allegro reference manual Β· page: al_peek_next_event(3) Β· date: the footer didnβt give one, bestie, so no cap β thatβs all she wrote. π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms