SFML community forums

Help => Window => Topic started by: Qix on September 25, 2012, 03:23:30 am

Title: TextEntered vs. KeyPressed
Post 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?
Title: Re: TextEntered vs. KeyPressed
Post by: Qix on September 25, 2012, 03:31:31 am
Answered my own question (from here (http://www.sfml-dev.org/tutorials/2.0/window-events.php))

Quote
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.