SFML community forums

Help => Window => Topic started by: pavanetti on October 04, 2011, 03:12:28 am

Title: How use sf::Event::TextEntered in place of Event::KeyPressed
Post by: pavanetti on October 04, 2011, 03:12:28 am
For text input it's recommended to use TextEntered. But how do I enable the use of TextEntered? If a key is pressed the event received is keypressed. I want to receive textentered only in some cases. Most of time I want to receive keypressed, but when textinput or textarea is selected I wanto to receive textentered.
Title: How use sf::Event::TextEntered in place of Event::KeyPressed
Post by: Laurent on October 04, 2011, 07:38:27 am
You receive both, actually. They are not mutually exclusive. So what's your problem exactly?