Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / is there a i GetTextInputCompleted() equivalent while using editboxs?

Author
Message
dandrews
4
Years of Service
User Offline
Joined: 26th Jun 2020
Location:
Posted: 12th Jun 2023 19:12
is there a i GetTextInputCompleted() equivalent while using editboxs?
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 12th Jun 2023 19:54 Edited at: 12th Jun 2023 19:58
GetEditBoxHasFocus() = 0 when Enter is pressed in an EditBox (or the user taps/clicks outside of it).

you could also check GetRawKeyPressed(13) if you want to know if Enter is pressed.

between the 2, you could set up some Flag system to know that the box had focus and Enter was pressed (and some input was entered?) if you need more control.

further you could have a separate Done/Enter button like some input systems use.
dandrews
4
Years of Service
User Offline
Joined: 26th Jun 2020
Location:
Posted: 12th Jun 2023 20:00
I might end up just creating my own submit button, its for mobile do the getrawkeys work with onscreen keyboards?

Login to post a reply

Server time is: 2024-11-21 10:10:17
Your offset time is: 2024-11-21 10:10:17