I'm currently working on a text based game using C++. The player moves around by pressing W, A, S, and D. However, in order to make a move, the player must press the movement key and then hit enter, which is annoying.
I did a bit of research on how to make the program automatically take the input after one character was entered, but I only found solutions for Windows (using the conio.h
header file)
Is there any way to achieve this on OS X? Thanks.