home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex053.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
443b
|
15 lines
// Example: 053 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h>
short count;
short main(void)
{
dddInitMouse();
for (count=0; count<1000; count++)
{
dddGetMousePos(); // Read in the mouse position and buttons.
printf("Mouse :- xpos=%d, Ypos=%d, Buttons=%d, Lbutton=%d, Rbutton=%d\n",dddmouse_x, dddmouse_y, dddbuttons, dddlbutton, dddrbutton);
}
return 0;
}