I am programming my first game framework in c++ and I have a console where I print debug info. Now I want to be able to introduce commands. The problem is that I dont know how to get the console input without pausing the main game loop. How can I do it? Do I need to separate it in another thread?