home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 14-03.C < prev    next >
Text File  |  1995-01-20  |  421b  |  24 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    fg_initpm();
  9.    if (fg_capslock())
  10.       printf("CapsLock is on.\n");
  11.    else
  12.       printf("CapsLock is off.\n");
  13.  
  14.    if (fg_numlock())
  15.       printf("NumLock is on.\n");
  16.    else
  17.       printf("NumLock is off.\n");
  18.  
  19.    if (fg_scrlock())
  20.       printf("ScrollLock is on.\n");
  21.    else
  22.       printf("ScrollLock is off.\n");
  23. }
  24.