How do I use the new Text input?

Hi guys,
I just found out that the old Text entry is replaced by a new one called Text input. I often use Text entry to get positions from an Arduino sending a number or a character followed by a return to GDevelop via usb. With the new Text input that doesn’t seem to work. The first problem I noticed is that the Text input is not activated until the user clicks with the mouse in the text field. Also earlier I could write some code such as ToNumber(name_of_textinputobject.String()) everytime a return key is sent. That doesn’t work anymore. Is there a solution to this?

Cheers

Farid

I suspect there are a few missing features from the new test entry object. Like you say, there’s no way to get focus on the object until the user clicks on it. And it also gobbles up the return key press - I can’t detect a return key pressed when the input text object has focus.

I’m going to raise this as a couple of bugs.

1 Like

@Farre, it looks like the return key issue in the input text field was added as a bug last year.

Here’s @jack’s workaround for setting focus for one input object.

Ok,
Thanks for making things clearer. To me it seems like a good idea to keep the old Text entry until the new Text input is working as it should.

Cheers

Farid

1 Like