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