SFML community forums

Help => General => Topic started by: èmji on May 14, 2018, 07:46:47 pm

Title: How to use TextEntered
Post by: èmji on May 14, 2018, 07:46:47 pm
Hello,

I don't know how to use TextEntered properly to let the user enter the name of a file after pressing a key.
What I did is that when the user presses a specific key (the C key), it activate a flag so event handler starts keeping user input in a buffer until the user presses 'Enter'. But this key ('C') is added to the buffer.

How can I avoid that?

Thank you.
Title: Re: How to use TextEntered
Post by: Laurent on May 14, 2018, 08:35:18 pm
Enabling user input when C is released rather than pressed should do the job.
Title: Re: How to use TextEntered
Post by: èmji on May 14, 2018, 11:34:15 pm
Thanks!