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

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. #define ESC 27
  7.  
  8. void main()
  9. {
  10.    unsigned char key, aux;
  11.  
  12.    fg_initpm();
  13.    do
  14.    {
  15.       fg_waitfor(9);
  16.       fg_intkey(&key,&aux);
  17.       printf("key = %3d  aux = %3d\n",key,aux);
  18.    }
  19.    while (key != ESC);
  20. }
  21.