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

Get help using Construct 2

Post » Thu Mar 23, 2017 12:45 pm


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 :)
Posts: 168
Reputation: 1,918

Return to How do I....?

Who is online

Users browsing this forum: Ofris, socialpilgrim and 5 guests