home *** CD-ROM | disk | FTP | other *** search
- // Example: 075 from Library Reference
- #include "..\3D-Ware\dddware.h"
- #include <stdio.h>
- short main(void)
- {
- if (dddJoystickPresent()) // Check to see if there is a joystick.
- {
- // We have a joystick on joystick port 1.
- puts("There is a joystick present on gameport 1");
- }
- else
- {
- // No joystick.
- puts("There is NOT a joystick present on gameport 1");
- }
- return 0; // Bye.
- }
-