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

  1.                                                       // Example: 088 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include  <stdio.h>
  4. short  count;
  5. short  myXpos;
  6. short  myYpos;
  7. short  myButtons;
  8. short  main(void)
  9. {
  10.   dddInitMouse();
  11.   for  (count=0; count<500; count++)                  // Loop a faw times.
  12.   {
  13.     dddMouseGetPointerXy(&myXpos,&myYpos,&myButtons); // Read in the position and button status.
  14.                                                       // Print the result.
  15.     printf("Xpos is %d\tYpos is %d\n",myXpos,myYpos);
  16.   }
  17.   return 0;
  18. }
  19.