home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / fgl105 / cc-01.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-07  |  406 b   |  26 lines

  1. #define ESC 27
  2.  
  3. int status1, status2;
  4.  
  5. main()
  6. {
  7.    unsigned char key, aux;
  8.  
  9.    int1C(1);
  10.  
  11.    status1 = 0;
  12.    status2 = 0;
  13.    fg_getkey(&key,&aux);
  14.  
  15.    while (key != ESC) {
  16.       printf("\n");
  17.       printf("Joystick 1 status: %d\n",status1);
  18.       printf("Joystick 2 status: %d\n",status2);
  19.       status1 = 0;
  20.       status2 = 0;
  21.       fg_getkey(&key,&aux);
  22.       }
  23.  
  24.    int1C(0);
  25. }
  26.