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. πβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms