home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex088.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
586b
|
19 lines
// Example: 088 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h>
short count;
short myXpos;
short myYpos;
short myButtons;
short main(void)
{
dddInitMouse();
for (count=0; count<500; count++) // Loop a faw times.
{
dddMouseGetPointerXy(&myXpos,&myYpos,&myButtons); // Read in the position and button status.
// Print the result.
printf("Xpos is %d\tYpos is %d\n",myXpos,myYpos);
}
return 0;
}