home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex051.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
489b
|
20 lines
// Example: 051 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h>
short main(void)
{
dddInitKeybd();
while (!dddkeycode)
{
dddGetJoystickPos();
printf("Joystick Xpos is %d\t",dddmouse_x);
printf("Joystick Ypos is %d\t",dddmouse_y);
printf("Joystick button 1 is %d\t",joystick_left_button);
printf("Joystick button 2 is %d\n",joystick_right_button);
}
dddRestoreKeybd();
return 0;
}