home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / animutil / fastgfx / fg110c / 12-10.c < prev    next >
Text File  |  1992-01-30  |  327b  |  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.