home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / FGL110C.ZIP / CC-01.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-31  |  458 b   |  31 lines

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