i dont really get what "handle explicitly", how do i do it? im just knew in SFML, thats why, i read the documentation on .erase(position, count o char to erase), could you please give me a clearer hint that i could understand.
if (event.type == sf::Event::TextEntered)
{
if((event.text.unicode < 128)&& playerInput.getSize()< 8 )
{
playerInput.insert(playerInput.getSize(), event.text.unicode);
playerText.setString(playerInput);
}
}
if(event.type == sf::Event::KeyPressed)
{
if(event.key.code == sf::Keyboard::BackSpace)
playerInput.erase(playerInput.getSize()-1,1);
}
this one works it does delete the last character but the backspace value remains.
if "HELLU" -press backspace "HELL" -press O "HELL 0".
deletes only once.