Hello,
After reading the tutorial on event/keyboard, I was wondering if we had to make all tests like that :
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Left)) {}
Or if it was possible to get the char/stream entered on the keyboard, thus doing the test much more like that :
if (event.type == sf::Event::KeyPressed) // in the "while (window.pollEvent(event))" loop
{
// getKeyPressed
// use the input on keyboard
}
Is this possible ? and if so, how can we catch this (into a sf::Text) as an example ?
If this is not possible, can I get help on how to do it manually ?
Thanks !