key_led_flag(3)
Welcome to the Allegro manual, bestie! This page is all about key_led_flag(3), and it's lowkey iconic. πβ¨
π NAME π
key_led_flag β a flag to prevent the keyboard LEDs from being updated. It's part of the Allegro game programming library. Periodt. π
β¨ SYNOPSIS β¨
#include <allegro.h>
extern int key_led_flag;
πΈ DESCRIPTION πΈ
Okay so by default, the capslock, numlock, and scroll-lock keys toggle the keyboard LED indicators when they are pressed. That's the standard vibe. β¨
But if you're using these keys for input in your game β eg. capslock to fire π₯ β this may not be desirable. So you can clear this flag to prevent the LED's being updated. It's giving "not today, LEDs" energy. π
No cap: if you want those keys to do game stuff without the LED glow-up, clear the flag. π«Ά
π¦ SEE ALSO π¦
install_keyboard(3)β go read it, bestie.set_leds(3)β also a whole vibe.
This page came from Allegro, version 4.4.3, and it's literally about key_led_flag(3). Slay, bye! πβ¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms