Console input

This is a discussion on Console input within the C++ Programming forums, part of the General Programming Boards category; A conditional I'm using to break out of a loop is as follows.
Code:
if(InRec.Event.KeyEvent.uChar.AsciiChar == 'x')
{
break;
}
...

To tell the truth, I made this a long time ago *sigh*. I do not remember well how, but if you want a pointer search for the inportb function.
It accepts a integer , that is what you want to ¨listen¨ to.