home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex066.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  599b  |  16 lines

  1.                               // Example: 066 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include  <stdio.h>
  4. short  main(void)
  5. {
  6.   dddInitKeybd();             // Initialise the keyboard functions.
  7.   while  (dddkeycode != _ESC) // Keep looping until ESCape is pressed.
  8.   {
  9.     printf("The value of the key pressed is %d\tEsc to quit.\n",dddkeycode);
  10.                               // Read and print the keycode.
  11.   }
  12.   dddRestoreKeybd();          // Allow the standard dos keyboard reading
  13.                               // facilities.
  14.   return 0;                   // Bye.
  15. }
  16.