How do I get the OSK's height on Android?

Get help using Construct 2

Post » Thu Mar 23, 2017 12:45 pm

Hi!

I've asked this some times but nobody was able to answer me :( When I run my game on Android and a text box is focused, the virtual keyboard (OSK) pops up and overlaps almost 40% of the screen. I want my game to scroll up when the keyboard is on screen, but I need the keyboard's height. There is no system expression that can help (neither WindowHeight nor Viewport expressions are affected, so Scroll To doesn't help either).

I had thought of getting this value with an XML input and storing it as a variable, but I don't know how to do it or if this is even possible. Can you please give me a hint? I really need it and I'm sure there is a way to do it.

Thank you for your help :)
B
21
S
7
G
1
Posts: 164
Reputation: 1,910

Return to How do I....?

Who is online

Users browsing this forum: MrSkailo and 25 guests