SFML community forums

Help => Window => Topic started by: peaman on May 13, 2008, 08:28:26 am

Title: Bug in event TextEntered?
Post by: peaman 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?
Title: Bug in event TextEntered?
Post by: Laurent on May 13, 2008, 09:22:38 am
Which OS ? Which version of SFML ?
Title: Bug in event TextEntered?
Post by: peaman on May 13, 2008, 10:21:03 am
Version 1.2, windows xp
Title: Bug in event TextEntered?
Post by: Laurent 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.
Title: Bug in event TextEntered?
Post by: peaman on May 16, 2008, 12:53:05 pm
Ok, then the problem is when you try to draw a string with unprintable characters.

Thanks.
Title: Bug in event TextEntered?
Post by: Laurent 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 ?
Title: Bug in event TextEntered?
Post by: peaman 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?
Title: Bug in event TextEntered?
Post by: Laurent on May 16, 2008, 02:21:52 pm
1- Download a SVN client (TortoiseSVN on Windows)
2- Checkout (download) the SFML repository (see there (http://sourceforge.net/svn/?group_id=188964))
3- Compile SFML