home *** CD-ROM | disk | FTP | other *** search
- // Example: 108 from Library Reference
- #include "..\3D-Ware\dddware.h"
- #include <stdio.h>
- short count;
- short main(void)
- {
- dddInitMouse(); // Initialise the mouse so that we can read the buttons.
- for (count=0; count<1000; count++) // Loop a few times.
- {
- dddReadMousePosition(); // Read in the mouse position button state.
- printf("Mouse xpos=%d, Mouse Ypos=%d, Buttons=%d, Lbutton=%d, Rbutton=%d\n",dddmouse_x, dddmouse_y,
- dddbuttons, dddlbutton, dddrbutton);
- }
- return 0;
- }
-