Hey everyone,
I'd love it if someone could help me develop a text box.
What i'm currently doing is using sf::isKeyPressed() and using sf::Clock. I append the key to a string every time a key press is detected but not allow it to happen unless a certain amount of milliseconds has passed between the previous key press detection.
But things aren't working out as expected. Sometimes too many keys are pressed at once or sometimes none are detected at all. I need it to function like a normal keyboard.
I'm not doing this in my main class either i'm doing it in another class in the background while my normal event loop is running.