I know how to use C++ to recieve input via
cin >> x;
But now I want a way to constantly check for input without pressing enter.
To my knowledge with cin you must press enter to assign whatever they typed to a variable.
How could I make it so that when the left arrow key is pressed it adjusts a variable (No need to press enter.)
Thank you! (This is console mode)
As an example of what I want to do...When someone pushes down it would add 1 to row_number. If they push up I want it to subtract from row_number.
Same thing with row_column...
As a note all I want is a tutorial or the code to catch the key...Thanks again!