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