Jump to content


Photo

Accessing Android Virtual Keyboard


  • Please log in to reply
30 replies to this topic

#21 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1414 posts
  • Version:Unknown

Posted 16 February 2013 - 01:48 PM

You can access user input using get_string_async() or get_integer_async() they will use the keyboard on all platforms.

Russell
  • 0

#22 gnysek

gnysek

    GMC Member

  • GMC Member
  • 324 posts
  • Version:GM:Studio

Posted 19 February 2013 - 09:59 AM

It will be nice if there is a function keyboard_device_show() which will show android/ios keyboard, and input will go to keyboard_string - of course user need to clear keyboard_string himself before opening, then you can create nice own input fields. If it's not possible on those devices to assign keyboard string to some variable and text must go to some input, there can be always an input outside screen (invisible for user), which will be focused with keyboard_device_show() and unfocused by keyboard_device_hide() or "return" char, and text from that input will be copied to keyboard_string. Shouldn't be too hard to do (and after you've made "execute script" non-modal I don't believe in any other "it's not possible" that you say ;) ).
  • 0

#23 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1414 posts
  • Version:Unknown

Posted 19 February 2013 - 10:46 AM

No this is not something that we are going to do - use get_string_async() for this.

Russell
  • 0

#24 jhanley

jhanley

    GMC Member

  • GMC Member
  • 58 posts
  • Version:GM:Studio

Posted 20 February 2013 - 10:17 PM

I hate to jump on the bandwagon here, but I desperately need this as well.

In my case I'm building a series of HTML5 learning programs. My client is expecting full virtual keyboard support on tablets.

This thread is nearly a year old. What's the status of this very important feature implementation? What's the best alternative at this point?
  • 0

#25 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16818 posts
  • Version:GM:Studio

Posted 20 February 2013 - 10:32 PM


I hate to jump on the bandwagon here, but I desperately need this as well.

In my case I'm building a series of HTML5 learning programs. My client is expecting full virtual keyboard support on tablets.

This thread is nearly a year old. What's the status of this very important feature implementation? What's the best alternative at this point?

No this is not something that we are going to do - use get_string_async() for this.

Russell


Russell gave the status in his post, I'm afraid. if you require an onscreen keyboard, you can always just code one yourself, it's not too complicated.... Posted Image So that's your best alternative. You can use for loops to detect touches across the screen, or even a series of virtual keys.
  • 0

#26 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14395 posts
  • Version:GM:Studio

Posted 20 February 2013 - 10:36 PM

Russell gave the status in his post, I'm afraid. if you require an onscreen keyboard, you can always just code one yourself, it's not too complicated.... Posted Image


We have a good one in the tutorials
  • 0

#27 jhanley

jhanley

    GMC Member

  • GMC Member
  • 58 posts
  • Version:GM:Studio

Posted 22 February 2013 - 04:43 AM

Can we expect virtual keyboard support for inline (aka. embedded) fields as well?

I'm in the process of converting a Flash movie to HTML5 using GMS. Everything is going smoothly except for the inability to include inline text area type fields. I know it's possible to roll my own custom field, but these will not invoke a native OS virtual keyboard.

I've been reading many threads on the subject, but there doesn't seem to be a definitive solution.

GMS implementation of HTML5 is great in so many ways, but I believe this issue is the major thing that's preventing it from being amazingly awesome.

Please, somebody biatch-slap me if there's a solution out there that's eluded me.

Edited by jhanley, 22 February 2013 - 04:45 AM.

  • 0

#28 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14395 posts
  • Version:GM:Studio

Posted 22 February 2013 - 05:04 AM

Please, somebody biatch-slap me if there's a solution out there that's eluded me.

post above yours.
  • 0

#29 ClassyGoat

ClassyGoat

    Goatee Connoisseur

  • GMC Member
  • 410 posts
  • Version:GM:Studio

Posted 24 February 2013 - 10:05 PM

Check out this on screen keyboard example I threw together: [STUDIO] On Screen Keyboard Example
And if you scroll down on that page, there are a few other examples made by other people too.
  • 0

#30 Myke113

Myke113

    GMC Member

  • New Member
  • 11 posts

Posted 03 April 2013 - 04:18 AM

I came upon this topic while looking for a solution to the keyboard problem.  I'm on an ASUS Transformer tablet, the arrow keys work on games, but the space bar doesn't work for jump, etc.  If I have a physical keyboard (not that unusual with Android anymore, with tablets and Bluetooth keyboards), then I should be able to detect keypresses cross platform.


  • 0

#31 TeamSteeve

TeamSteeve

    GMC Member

  • GMC Member
  • 897 posts
  • Version:GM:Studio

Posted 03 April 2013 - 04:33 AM

I came upon this topic while looking for a solution to the keyboard problem.  I'm on an ASUS Transformer tablet, the arrow keys work on games, but the space bar doesn't work for jump, etc.  If I have a physical keyboard (not that unusual with Android anymore, with tablets and Bluetooth keyboards), then I should be able to detect keypresses cross platform.

This doesn't really have anything to do with accessing the virtual keyboard, but I agree that it is a problem. One which YoYo doesn't seem eager to fix.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users