Getting input without stopping code (preferably in c++)
roysun (1)

I am currently working on a text game where people have to type stuff to react to events written in the console. There is a main loop that constantly updates what is written in the console. Also,the time factor here is important (the faster the user reacts and types the better it is for them).

So is there a way to get input without stoping the loop in c++? If not, I am willing to learn another language for this purpose (am looking for one anyways). Thanks!

You are viewing a single comment. View All
Answered by theangryepicbanana (833) [earned 5 cycles]
View Answer
theangryepicbanana (833)

@roysun ok well after looking, it seems as though you will need to use something like conio.h to get "unbuffered" input