home *** CD-ROM | disk | FTP | other *** search
- // Example: 117 from Library Reference
- #include "..\3D-Ware\dddware.h"
- #include <stdio.h>
- short main(void)
- {
- dddInitKeybd(); // Initialise the 3D-Ware keyboard functions.
- while (dddkeycode != _ESC)
- {
- // Read and print the keycode.
- printf("The value of the key is %d\tEsc to quit.\n",dddkeycode);
- }
- dddRestoreKeybd(); // Restore the dos keyboard reading
- // facilities.
- return 0;
- }
-