I do not understand how to make event processing when you press the button in the C++ console.
Moreover, that this button on the keyboard is exactly the one that I will indicate, that is, not just pressing any key, but defined. Thanks in advance.
Answer 1
# include & lt; conio.h & gt;
// ...
Char C = _Getch ();
if (C == 'W') {
// The 'W' key was pressed
}