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 (852) [earned 5 cycles]
View Answer
roysun (1)

@theangryepicbanana Unfortunately, it seems that conio.h does not work on with c++. Some source say it is not compatible with c++ while other forums say they are usable in c++ (with windows). Do you know if there is anything that can accomplish this in Ruby? I started coding by learning a bit of ruby.