key_led_flag(3alleg4)

✨ NAME ✨

key_led_flag β€” the flag that stops your keyboard LEDs from doing the absolute most, bestie. Part of the Allegro game programming library, no cap. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

extern int key_led_flag;

πŸ’– DESCRIPTION πŸ’–

Okay so picture this: by default, the capslock, numlock, and scroll-lock keys toggle the keyboard LED indicators every time you press them. That's their whole thing. Little light goes on, little light goes off. Iconic. πŸ¦‹

But bestie… what if you're using those keys for input in your game? Like, say, capslock to fire? 😭 Then the LEDs flipping around like that is lowkey not the vibe, and it's highkey not desirable. So here's the tea: you can clear this flag and prevent the LED's from being updated. That's it. That's the whole move. 🫢

Not me casually disabling hardware behaviour for gameplay reasons β€” slay. ✨

🌸 SEE ALSO 🌸


And that's a wrap, my love β€” this page came to you from the Allegro crew, version 4.4.3, and it's filed under key_led_flag(3alleg4). Go forth and clear that flag, you main character. πŸ’œβœ¨