home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / fglc / 14-11.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-30  |  327 b   |  18 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    if (fg_initjoy(1) < 0)
  9.       printf("Joystick 1 not available.\n");
  10.    else
  11.       printf("Joystick 1 found.\n");
  12.  
  13.    if (fg_initjoy(2) < 0)
  14.       printf("Joystick 2 not available.\n");
  15.    else
  16.       printf("Joystick 2 found.\n");
  17. }
  18.