Allegro 5 api
#include <allegro5/allegro.h> bool al_set_keyboard_leds(int leds)
Overrides the state of the keyboard LED indicators. Set to -1 to return to default behavior. False is returned if the current keyboard driver cannot set LED indicators.