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

Author Topic: How to convert a key press to a string?  (Read 1562 times)

0 Members and 1 Guest are viewing this topic.

Leodido

  • Newbie
  • *
  • Posts: 10
    • View Profile
How to convert a key press to a string?
« on: March 19, 2010, 02:04:13 pm »
I'd like to be able to type text in my programm, but I don't know how to convert Event.Key.Code key to a string?

Is there any easy way to do that?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How to convert a key press to a string?
« Reply #1 on: March 19, 2010, 02:14:48 pm »
Use Event::TextEntered for text input.
Laurent Gomila - SFML developer

 

anything