SFML community forums

Help => Window => Topic started by: kamac on December 07, 2011, 08:22:02 pm

Title: App.GetInput with TextEntered?
Post by: kamac on December 07, 2011, 08:22:02 pm
I need to check for TextEntered & add the text in a class.

How would i do it using TextEntered? It's a edit box, so i need to use it for good input. I can't use:

Code: [Select]
while(App.GetEvent(Event))
{
      if(Event.Type == sf::Event::TextEntered)
      {
            my_string += static_cast<char>(Event.Text.Unicode);
            sfml_string.SetText(my_string);
       }
}


As it must be in a class, and when i use it in a class, it's very, very slow.

Any ideas?