How do I keep the ios popup keyboard from scaling the app

Get help using Construct 2

Post » Tue Apr 05, 2016 4:03 pm

I'm building the next mobile megahit! It is a grid-based game that uses "Letterbox scale". I'm using PhoneGap Build to port to ios. I'm targeting the iPhone 5, 6, and 6s aspect ratio and all other ratios will have black bars. No problem and working great. UNTIL the focus goes on the textbox where the user enters their name for the high-scores. As soon as the textbox gets focus, the iPhone keyboard pops up and the entire app scales very small and off the top of the screen with lots of black space around it. Once the name is entered and the user presses "Done", the screen goes back to normal. How do I prevent this unwanted scaling? I can't use Scale inner or Scale outer for the whole game because the entire grid has to be on the screen at all times.
B
11
S
1
Posts: 10
Reputation: 439

Post » Wed Apr 06, 2016 7:29 pm

I'm no expert but have you tried putting your layout to unbound scrolling?
B
5
S
2
Posts: 4
Reputation: 458

Post » Wed Apr 06, 2016 10:17 pm

I didn't even know about that property of the layout! I'll try it.
B
11
S
1
Posts: 10
Reputation: 439

Post » Wed Apr 06, 2016 11:37 pm

Scale inner/outer is what you're looking for. You'll just need to design the layout so that your grid fits in all aspect ratios you want to target.

If you use letterbox scale, the on screen keyboard will resize the window and cause your screen to shrink.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Apr 07, 2016 4:06 pm

Changing the layer "Unbound scrolling" to "Yes" didn't fix it. Trying "Sale outer" next.
B
11
S
1
Posts: 10
Reputation: 439

Post » Mon Apr 11, 2016 5:01 pm

I tried these options for the project's "Fullscreen in browser" property: Scale inner, Scale outer, Letterbox scale, Letterbox integer scale. They all cause the popup iOS keyboard to scale the window and cause the screen to shrink when the textbox gets focus. Anyone have any other ideas?
B
11
S
1
Posts: 10
Reputation: 439

Post » Wed May 25, 2016 4:34 pm

The end result was to build a virtual keyboard within the game so there is no text box and no pop-up iOS keyboard. The Apple App store approved it and the game is now available! https://itunes.apple.com/us/app/id1086404158
B
11
S
1
Posts: 10
Reputation: 439

Post » Fri Jun 03, 2016 2:58 pm

just wanted to add something in case you run into issues with Android. Any text input on android that is closer to the top causes the keyboard to appear and disappear really quickly,

https://youtu.be/N2MNRnDs4dQ
B
7
S
1
Posts: 10
Reputation: 554

Post » Fri Jun 03, 2016 3:25 pm

Thanks. I hope my virtual keyboard will work on it's own on Android and not have to rely on OS popup keyboards.
B
11
S
1
Posts: 10
Reputation: 439

Post » Fri Jun 03, 2016 3:26 pm

I think the best solution would be making your own keyboard out of sprites.
Image ImageImage
B
169
S
50
G
169
Posts: 8,284
Reputation: 108,212

Next

Return to How do I....?

Who is online

Users browsing this forum: facecrime, tarek2 and 4 guests