SFML community forums

Help => General => Topic started by: Degri on March 02, 2019, 08:23:35 pm

Title: Text input
Post by: Degri on March 02, 2019, 08:23:35 pm
I've tried to make some text input in SFML but "input += event.text.unicode" removes what was previously written: when I draw a Text with "input" as string it shows the character currently pressed and then removes it when another key is pressed. What am I doing wrong?
Title: Re: Text input
Post by: eXpl0it3r on March 03, 2019, 12:09:59 am
Can you provide a minimal but complete example of your code?
Title: Re: Text input
Post by: Degri on March 03, 2019, 07:31:48 am
I'm sorry I bothered you, but while copying the code to another file to share it here I found out I made a really dumb mistake... Sorry again!
Title: Re: Text input
Post by: eXpl0it3r on March 03, 2019, 09:26:56 am
No worries, happens to all of us. :)
Glad you figured it out.