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