1al_set_keyboard_leds(3) al_set_keyboard_leds(3)
2
3
4
6 al_set_keyboard_leds - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 bool al_set_keyboard_leds(int leds)
12
14 Overrides the state of the keyboard LED indicators. Set leds to a com‐
15 bination of the keyboard modifier flags to enable the corresponding LED
16 indicators (ALLEGRO_KEYMOD_NUMLOCK, ALLEGRO_KEYMOD_CAPSLOCK and ALLE‐
17 GRO_KEYMOD_SCROLLLOCK are supported) or to -1 to return to default be‐
18 havior. False is returned if the current keyboard driver cannot set
19 LED indicators.
20
21
22
23Allegro reference manual al_set_keyboard_leds(3)