-_-
Event tInput;
window->pollEvent(tInput);
if (tInput.type == sf::Event::TextEntered) {
if (tInput.text.unicode < 128) {
str += static_cast<char>(tInput.TextEntered);
}
}
cBox.setString(str);
window->draw(cBox);
Thats probably not exactly like the example that I found on this forum earlier, that is just what I had saved at the time I posted this after trying everything I could think of.