key_led_flag(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

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


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