home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1995 September / PCPRO2_995.ISO / virtek / dos / libex / libex088.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-16  |  586 b   |  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.