How do I know if TextBox is in the focus or not?

Get help using Construct 2

Post » Wed Nov 09, 2016 2:10 pm

I want to use TextBox object in my mobile game, but I don't get On Key Pressed events from the Keyboard and so I can't know that the user complete to enter the answer. Maybe there's another way to know that user presses "enter" in mobile keyboards. I run my app in Android now
B
10
S
2
Posts: 71
Reputation: 696

Post » Wed Nov 09, 2016 4:02 pm

Use the event "TextBox: On text changed".
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Thu Nov 10, 2016 8:50 am

randomly wrote:Use the event "TextBox: On text changed".


With "On text changed" I can know that user changed the text, but I can't know if he finish to enter the answer
B
10
S
2
Posts: 71
Reputation: 696

Post » Thu Nov 10, 2016 3:07 pm

I see, you need something special.

Download @Pinco 's Advanced Textbox plugin and use the event "On focus lost".
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest