SFML community forums
Help => Window => Topic started by: Qix on September 25, 2012, 03:23:30 am
-
When is TextEntered fired as opposed to KeyPressed? What's the difference? Are they both fired? When would TextEntered be used rather than KeyPressed?
-
Answered my own question (from here (http://www.sfml-dev.org/tutorials/2.0/window-events.php))
The sf::Event::TextEntered event is triggered when a character is typed. This must not be confused with the KeyPressed event: TextEntered interprets the user input and produces the appropriate printable character.