home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex089.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  527b  |  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.