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

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