I'm taking an intro to c++ class. My assignment is to create a console based game.
I would like a section of the code to check to see what the last key pressed was (arrow keys), and scroll the screen in that direction continuously until another direction is pressed. I'm doing a maze that keeps moving all the time, where you have to avoid hitting the walls but can never stand still.
getch() doesn't work for me because it pauses the movement of the game while waiting for input. I would prefer just to scan the keyboard for the last key pressed before another key is entered.