home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex106.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
594b
|
16 lines
// Example: 108 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h>
short count;
short main(void)
{
dddInitMouse(); // Initialise the mouse so that we can read the buttons.
for (count=0; count<1000; count++) // Loop a few times.
{
dddReadMousePosition(); // Read in the mouse position button state.
printf("Mouse xpos=%d, Mouse Ypos=%d, Buttons=%d, Lbutton=%d, Rbutton=%d\n",dddmouse_x, dddmouse_y,
dddbuttons, dddlbutton, dddrbutton);
}
return 0;
}