home *** CD-ROM | disk | FTP | other *** search
- // Example: 089 from Library Reference
- #include "..\3D-Ware\dddware.h"
- #include <stdio.h>
- short count;
- short myXpos;
- short myYpos;
- short myButtons;
- short main(void)
- {
- dddInitMouse();
- for (count=0; count<500; count++)
- {
- dddMouseGetRelPointerXy(&myXpos,&myYpos); // Return the relative movement of the mouse.
- // Print the result.
- printf("Xpos is %d\tYpos is %d\n",myXpos,myYpos);
- }
- return 0;
- }
-