home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex053.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  443b  |  15 lines

  1.                       // Example: 053 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include    <stdio.h>
  4. short    count;
  5. short  main(void)
  6. {
  7.   dddInitMouse();
  8.   for  (count=0; count<1000; count++)
  9.   {
  10.     dddGetMousePos(); // Read in the mouse position and buttons.
  11.     printf("Mouse :- xpos=%d, Ypos=%d, Buttons=%d, Lbutton=%d, Rbutton=%d\n",dddmouse_x, dddmouse_y, dddbuttons, dddlbutton, dddrbutton);
  12.   }
  13.   return 0;
  14. }
  15.