home *** CD-ROM | disk | FTP | other *** search
- // Example: 050 from Library Reference
- #include "..\3D-Ware\dddware.h"
- #include <stdio.h>
- long ticks;
- short main(void)
- {
- dddInitKeybd(); // Initialise the 3D-Ware Keyboard handler.
- while (!dddkeycode) // Run until a key is pressed.
- {
- ticks = dddGeticks(); // Request the current ticks value.
- printf("Current ticks val is :- %ld, seconds is :- %ld\n",ticks, ticks/18);
- // Print the current value and also print the value
- // divided by 18 to give us a seconds value.
- }
- dddRestoreKeybd();
- return 0; // Bye.
- }
-