I've finished a void display function for an in-game menu. I'm trying to have the menu stay at the top of the cmd for the length of the game. However, since it's a separate function, the program stays in the menu function, and never reaches the functions that follow it.
It would be great if there was a way to have the function running independently of the others and you could call it anytime.
I've tried multi-threading with little success. I've managed to get both functions running at the same time, however it seemed like it was confused as to which function i was using.
cin >> b;
I would press a key for the 1st function, but it instead it would try to input it into the 2nd function
Only way i can think of doing it, mainly because I've seen it done, is having an embedded window in the cmd window, displaying the menu. Sort of like the use of frames when building a website.
Any ideas? I've spent way too long on this menu to scrap it!