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:
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?