home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex075.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  518b  |  18 lines

  1.                              // Example: 075 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include  <stdio.h>
  4. short  main(void)
  5. {
  6.   if  (dddJoystickPresent()) // Check to see if there is a joystick.
  7.   {
  8.                              // We have a joystick on joystick port 1.
  9.     puts("There is a joystick present on gameport 1");
  10.   }
  11.   else
  12.   {
  13.                              // No joystick.
  14.     puts("There is NOT a joystick present on gameport 1");
  15.   }
  16.   return 0;                  // Bye.
  17. }
  18.