al_peek_next_event(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ¦‹ 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