I'm still a bit new to programming, but I decided to write an RPG and after a good start I got stuck at one point. Can anyone please tell me how can I, using the console, get keyboard input??? I don't mean just a
cin<<???; or cin.get .
How can I make it so that if someone pesses the key (arrow up) the cursor in my menu will move up one position, of if someone presses M the menu will pop up, or if the arrow down is pressed the player character will move down one position. I know how to program the functions, menus, etc, I just don't know how to avoid the typing in of commands. I was told it can be easily done with OpenGL, or others, but I wanna stick to basics. I wanna make it so the computer will wait until you press the key, then execute the function, etc.
Thanks for any feedback.