And I know there’s std::cin, but that requires the user to enter a string, then press ENTER. Is there a way to simply get the next key that is pushed without needing to press ENTER to confirm
And I know there’s std::cin , but that requires the user to enter a
Share
You can use
and then catch char with cases such as this
Beware: I have not tried it… and remember to put the whole thing into a “while(true)” to test.