SetConsoleMode(InputH,ENABLE_PROCESSED_INPUT|ENABLE_MOUSE_INPUT);
while(1)
{
ReadConsoleInput(InputH,&InputRecord,1,&InputEvents);
if(InputRecord.Key_Event)
{
if(InputRecord.Key_Code == VK_RIGHT) cout<<"You pressed right. Yay!"<<endl;
}
FlushConsoleInputBuffer(InputH);
}
FlushConsoleInputBuffer() is used to prevent input from echoing, correct? If so, that command isn't doing it's job, I still get echo, and I can't figure out why. Any suggestions?
I reposted this because it looks like my text on the other post was made too small.