al_can_set_keyboard_leds(3alleg5)

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

πŸ’… NAME πŸ’…

okay so bestie, meet al_can_set_keyboard_leds β€” it's part of the Allegro 5 API, and no, the manual page name 3alleg5 isn't a typo, that's just how the Allegro 5 peeps label their section three pages. periodt.


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_can_set_keyboard_leds(void)

like, that's it. that's the whole function signature. she's simple, she's elegant, she ate πŸŽ€


🌸 DESCRIPTION 🌸

ngl this one is short and sweet and I'm obsessed with her for it. al_can_set_keyboard_leds returns true if setting the keyboard LED indicators is actually available. that's the whole vibe check. if it says true, you're good to go and you can light up those little caps lock / num lock / scroll lock lights like the main character you are. if it says false, the LEDs are not it and you gotta respect that. πŸ’–

literally all it does is tell you whether that capability exists on the current system. no side effects, no drama, no mess. she's just answering one question and minding her business πŸ¦‹


⭐ SINCE ⭐

available since 5.2.9 β€” so she's not ancient, she's not brand new, she's just a lil icon from that era πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

  • al_set_keyboard_leds(3alleg5) β€” the one that actually does the LED-setting. this page is just her check-in bestie, the "can we though?" to her "yes we can" πŸ”₯

okay bestie that's the whole page, short king energy fr fr πŸ’€βœ¨ and just so you know where all this lore came from β€” it's the Allegro reference manual, so shoutout to them for keeping the LEDs documented 🫢🌸 and that's a wrap, go forth and light up those indicators, ily, bye πŸŽ€πŸ’…πŸŒˆ

πŸ“¦ where this page comes from