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

Author Topic: How do I convert a window.keyboard.key into a char?  (Read 2684 times)

0 Members and 1 Guest are viewing this topic.

zombiekiller222

  • Guest
How do I convert a window.keyboard.key into a char?
« on: October 15, 2011, 09:42:08 am »
Title says all.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How do I convert a window.keyboard.key into a char?
« Reply #1 on: October 15, 2011, 10:39:15 am »
You don't need to. The KeyPressed event (and/or IsKeyPressed) are about keys, which cannot be converted to chars directly.

Use the TextEntered event if you want to get characters.
Laurent Gomila - SFML developer