Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How use sf::Event::TextEntered in place of Event::KeyPressed  (Read 1882 times)

0 Members and 1 Guest are viewing this topic.

pavanetti

  • Newbie
  • *
  • Posts: 8
    • View Profile
How use sf::Event::TextEntered in place of Event::KeyPressed
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How use sf::Event::TextEntered in place of Event::KeyPressed
« Reply #1 on: October 04, 2011, 07:38:27 am »
You receive both, actually. They are not mutually exclusive. So what's your problem exactly?
Laurent Gomila - SFML developer