home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex089.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
527b
|
19 lines
// Example: 089 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++)
{
dddMouseGetRelPointerXy(&myXpos,&myYpos); // Return the relative movement of the mouse.
// Print the result.
printf("Xpos is %d\tYpos is %d\n",myXpos,myYpos);
}
return 0;
}