control over virtual keyboard - mobile keyboard

0 favourites
  • 2 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • Hey everyone.... got an issue im dealing with an was wondering if anyone had any insight.

    i have a spelling game that uses the c2 text box (under form controls) for my input and im having a couple of issues

    the game is fairly simple, you hear audio for a word...you spell it.... you get it wrong you have to spell till its right, you get it right and you move on to the next word (plays audio, you spell, repeat)

    here is the main issue:

    #1 on ios the keyboard is not popping up automatically when the game starts ( it is on android)

    i can verify that my focus is working... however i need to keep touching the screen to get the keyboard to pop up (i can touch anywhere since the text box is in focus)

    is there any way to use code to trigger / simulate the touch that the device is looking for ?

    this seems similar to needing to touch the screen to hear audio on ios devices .

    maybe some code to activate the keyboard?

    thanks for the help!

    -Rik

    Ashley

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello Rik Marshall,

    in javascript (for HTML5 games) I think it is not possible. The enter-'event' is a function of the keyboard-program not a browser-function. But this cordova-PlugIn looks like your searched solution:

    https://www.npmjs.com/package/cordova-plugin-keyboard

    a work around would be to use textarea-tags ... with a replace of 'newlines'

    Or better: Your own virtual keyboard created with sprites

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)