GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SET_LEDS (3)

NAME

set_leds - Sets the state of the keyboard LED indicators. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

void set_leds(int leds);

DESCRIPTION

Overrides the state of the keyboard LED indicators. The parameter is a bitmask containing any of the values KB_SCROLOCK_FLAG, KB_NUMLOCK_FLAG, and KB_CAPSLOCK_FLAG, or -1 to restore the default behavior. Example:

   /* Cycle led indicators. */
   set_leds(KB_SCROLOCK_FLAG);
   rest(1000);
   set_leds(KB_CAPSLOCK_FLAG);
   rest(1000);
   set_leds(KB_NUMLOCK_FLAG);
   rest(1000);
   set_leds(-1);
  

Note that the led behaviour cannot be guaranteed on some platforms, some leds might not react, or none at all. Therefore you shouldn’t rely only on them to communicate information to the user, just in case it doesn’t get through.

SEE ALSO

install_keyboard(3), key_led_flag(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro SET_LEDS (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.