0 Members and 1 Guest are viewing this topic.
I think he just wanna use the TextEntered eventYou've gotta use sf::Event::TextEntered. Then use Event.Text.Unicode to add the new letter entered to your string
if (myevent.Type == sf::Event::KeyPressed and state == 0 and tempo_novo != -1 and myevent.Key.Code == sf::Key::A) { if (myevent.Key.Code == sf::Key::BackSlash) { pos_cur--; nome_digit[pos_cur+1] = '\0'; } else { nome_digit[pos_cur] = myevent.Key.Code; nome_digit[pos_cur+1] = '\0'; nome_str = nome_digit; record_name[tempo_novo] = nome_str; if (pos_cur < 13) { pos_cur++; } } }