Using Mobile Keyboard (not possible yet)

Get help using Construct 2

Post » Wed May 08, 2013 4:12 pm

Hi all, I'm coming to the end of developing a mobile game but I've encountered an unusual error and I'm hoping someone may be able to assist me in how to solve the issue.

Problem
When exporting to HTML my game offers a leaderboard where the user can enter their name using a textbox. Simply click inside, write your name and click send. Simple.

This same mechanism on mobile (Exporting to CocoonJS) has a much more difficult approach.
Tapping inside the Textbox results in nothing. I expected the mobile keyboard to pop up and allow the user to enter their name.

Solutions I've tried
I've tested on multiple mobile devices and nothing on any of them. I've tried "on touch, set focus" but still nothing.

Am I missing something I'm supposed to do, or is this simply not possible yet?

Thanks in advance for any help anyone offers

Edit
Seems if I export the game to a HTML format and run it through the mobile browser the mobile keyboard works. Problem now though is the game is running at around 12 - 16 fps.
Could really do with a solution using CocoonJS export to get the keyboard as the game runs 32 - 37 fps in CocoonJS.Richard Stennett2013-05-10 09:16:20
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Thu May 09, 2013 11:12 am

This is still an issue. Trying to create some sort of work around now by designing my own keyboard and variables to indicate key strokes.
Not efficient but it works.

If anyone knows an easier way to access the mobiles on screen keyboard when exporting to CocoonJS please let me know.
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Fri May 10, 2013 8:48 am

Bumping the thread, I have no new information, any other ideas I could try would be useful.
Thanks in advance as always
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Fri May 10, 2013 9:15 am

Update

Seems its not possible at this time https://www.scirra.com/tutorials/303/how-to-export-to-cocoonjs. Textbox is currently unsupported.
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Fri May 10, 2013 11:16 am

Richard I have an old Samsung with qwerty-slider and my keyboard works fine on game.

Gimme a capx example, i gonna try with the software keyboard.
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Fri May 10, 2013 12:33 pm

@breackzin
Unfortunately I can't offer an example of the capx I am currently working on.
I'll create a makeshift one for the moment as a demo and upload it shortly.

In the meantime, create a textbox (so the user can input information), export the capx as a cocoonJS file, run it through the cocoonJS mobile app (ether Play Store or App Store) and tap inside the Textbox. Nothing happens.

Edit
Here are the files I'm testing on with all the data you might need. Thanks for the help

HTML5
https://dl.dropboxusercontent.com/u/74175978/Keyb/HTML5/index.html
If you run this version through Windows XP, Vista, 7, Android or iOS the textbox works fine.
The software keyboard on mobile and tablets all work as expected

CocoonJS
CocoonJS Export
This version can only be tested on mobile, in this case mobile doesn't allow the software keyboard to be used. Or at least I can't get it to workRichard Stennett2013-05-10 12:51:53
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Fri May 10, 2013 12:47 pm

I've already "127.0.0.1" is a must so my layout begins.
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Fri May 10, 2013 1:08 pm

@breackzin
I don't understand what layouts have to do with textbox
B
13
S
2
Posts: 87
Reputation: 1,244

Post » Fri May 10, 2013 1:42 pm

http://www.youtube.com/watch?v=PkKNakWSgpo

My first layout have a textbox as a prerequisite to the next one.

Also, I was wrong telling you that it all worked fine because I remember now of not using cocoonjs, but a Lan preview with the textbox shaking.
B
7
S
3
G
1
Posts: 154
Reputation: 1,812


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests