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

Author Topic: Bug in event TextEntered?  (Read 6864 times)

0 Members and 1 Guest are viewing this topic.

peaman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Bug in event TextEntered?
« on: May 13, 2008, 08:28:26 am »
Hello

I wrote a program that displays text the user enters, but when one presses backspace it won't react to any subsquent input. Is this a bug?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Bug in event TextEntered?
« Reply #1 on: May 13, 2008, 09:22:38 am »
Which OS ? Which version of SFML ?
Laurent Gomila - SFML developer

peaman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Bug in event TextEntered?
« Reply #2 on: May 13, 2008, 10:21:03 am »
Version 1.2, windows xp

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Bug in event TextEntered?
« Reply #3 on: May 16, 2008, 05:01:28 am »
I don't see any problem with the TextEntered event on Windows XP, it works fine.

You should just handle differently characters with ASCII code < 32, which are not printable characters.
Laurent Gomila - SFML developer

peaman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Bug in event TextEntered?
« Reply #4 on: May 16, 2008, 12:53:05 pm »
Ok, then the problem is when you try to draw a string with unprintable characters.

Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Bug in event TextEntered?
« Reply #5 on: May 16, 2008, 12:56:50 pm »
As I said, I have no problem with the current version. Can you try the SVN sources ?
Laurent Gomila - SFML developer

peaman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Bug in event TextEntered?
« Reply #6 on: May 16, 2008, 01:35:26 pm »
When I filter the characters 0-31, as you said, I don't have the problem anymore. That's fine with me. But you mean even that shouldn't be necessary?
I would like to try the SVN. Is there an easy way to download everything at once?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Bug in event TextEntered?
« Reply #7 on: May 16, 2008, 02:21:52 pm »
1- Download a SVN client (TortoiseSVN on Windows)
2- Checkout (download) the SFML repository (see there)
3- Compile SFML
Laurent Gomila - SFML developer