Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: App.GetInput with TextEntered?  (Read 1797 times)

0 Members and 1 Guest are viewing this topic.

kamac

  • Newbie
  • *
  • Posts: 19
    • View Profile
App.GetInput with TextEntered?
« 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?