Accepting Text Input in SDL

Mar 9, 2012 at 6:32am
I am working on a program using the SDL library in Visual Studio.

I want to make the program be able to ask the user to enter information and then set that input a value ..

Here is a snippet of my code:
p1name.m_text->setText("Player 1 what is your name?");
p1name is defined earlier in the code:
CUIText p1name;

The problem is that it will ask the question but will not allow the player to type any information.

I'm trying to do something that is similar to the following code:

1
2
cout << "what is your name";
cin >> p1name;


but using coding compatible with SDL.

Any help or info on this??

Thanks :)
Mar 9, 2012 at 6:37am
Looking at something like this might help?

http://lazyfoo.net/SDL_tutorials/lesson23/index.php
Topic archived. No new replies allowed.