al_get_keyboard_event_source(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– al_get_keyboard_event_source β€” Allegro 5 API ✨

okay bestie, welcome to the Allegro 5 reference manual, we're doing this one together 🫢


🌸 NAME 🌸

al_get_keyboard_event_source β€” Allegro 5 API πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

ALLEGRO_EVENT_SOURCE *al_get_keyboard_event_source(void)

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. you wanna get your hands on the keyboard event source? that's literally what this does, no cap ✨

Every single keyboard event β€” like, ALLEGRO_EVENT_KEY_DOWN (ALLEGRO_EVENT_KEY_DOWN(3alleg5)) and all its keyboard-event friends β€” is generated by this exact event source. it's giving main character energy, fr fr πŸ‘‘

πŸ’€ IMPORTANT THO: it returns NULL if the keyboard subsystem was not installed. so vibe check your init calls before you start pointing fingers at this function, bestie 😭

and that's the whole thing!! short, sweet, iconic, ate. 🌈⭐

signing off from the Allegro reference manual β€” this page is al_get_keyboard_event_source(3alleg5) and it loves you πŸ’œπŸŽ€

πŸ“¦ where this page comes from