.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_set_keyboard_leds" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_set_keyboard_leds - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include bool al_set_keyboard_leds(int leds) \f[R] .fi .SH DESCRIPTION .PP Overrides the state of the keyboard LED indicators. Set \f[V]leds\f[R] to a combination of the keyboard modifier flags to enable the corresponding LED indicators (\f[V]ALLEGRO_KEYMOD_NUMLOCK\f[R], \f[V]ALLEGRO_KEYMOD_CAPSLOCK\f[R] and \f[V]ALLEGRO_KEYMOD_SCROLLLOCK\f[R] are supported) or to -1 to return to default behavior. False is returned if the current keyboard driver cannot set LED indicators.