home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1995 September / PCPRO2_995.ISO / virtek / dos / libex / libex089.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-16  |  527 b   |  19 lines

  1.                                               // Example: 089 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++)
  12.   {
  13.     dddMouseGetRelPointerXy(&myXpos,&myYpos); // Return the relative movement of the mouse.
  14.                                               // Print the result.
  15.     printf("Xpos is %d\tYpos is %d\n",myXpos,myYpos);
  16.   }
  17.   return 0;
  18. }
  19.