How do I input text to a string in an OpenGL program? I know I need to catch the key presses and I do that, but how do I input that to a string. If I tell the user to type a his/her name in, then I make the program loop through a function that repeats until the user presses the enter key. Then it stores this text to a string. I hope you understand what I am talking about. Thank you!