ReadConsoleInput(hInput, &InputRecord, 1,&Events);
if(InputRecord.Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE)
{
bstillplaying = false;
}
Reading Console Input
Hey, I have a program that i want to close when the user presses the escape key so i used the following code:
however when i run my program it waits for console input before deciding what to do. I want it to do other things in the program and only if Escape is pressed then close the program. any help appreciated!
[edited by - Tech19 on January 15, 2003 4:35:06 PM]
[ Tech 19 ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement