Hello, I'm having a problem with inputting text. I saw on the forums that this is one way
of doing it:
if (event.type == sf::Event::TextEntered){
if(StringPort.length()<5){
StringPort+=static_cast<char>(event.text.unicode);Sleep(150);}
VnesenPort.setString(StringPort);
if(event.text.unicode==8)
StringPort.erase();
But that doesn't work so good, because whenever I type something in, the program types it too fast, so I'm using the Sleep function, but there is obviously a better way. Please help me out : )