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

Author Topic: TextEntered vs. KeyPressed  (Read 1803 times)

0 Members and 1 Guest are viewing this topic.

Qix

  • Full Member
  • ***
  • Posts: 139
  • I am Qix!
    • View Profile
    • Natoga Technologies
TextEntered vs. KeyPressed
« 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?
~ Qix
Creator of Rippl Studio
Code: [Select]
<danharibo> iostream: I don't do enough drugs to think that's a good idea.

Qix

  • Full Member
  • ***
  • Posts: 139
  • I am Qix!
    • View Profile
    • Natoga Technologies
Re: TextEntered vs. KeyPressed
« Reply #1 on: September 25, 2012, 03:31:31 am »
Answered my own question (from here)

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.
~ Qix
Creator of Rippl Studio
Code: [Select]
<danharibo> iostream: I don't do enough drugs to think that's a good idea.