playMaker

Author Topic: Enter key on BlackBerry keyboard  (Read 5654 times)

cb

  • Junior Playmaker
  • **
  • Posts: 66
Enter key on BlackBerry keyboard
« on: August 07, 2013, 01:46:51 PM »
Trying to enter a name onto my BlackBerry Z10 and then get the app to detect that the Enter button is pressed and fire off another event, as in this thread:

http://hutonggames.com/playmakerforum/index.php?topic=3938.msg21633#msg21633

Any ideas on how I can tell the device the Enter key has been pressed ?

cb

  • Junior Playmaker
  • **
  • Posts: 66
Re: Enter key on BlackBerry keyboard
« Reply #1 on: August 08, 2013, 03:21:18 AM »
Anyone? Come to a shuddering halt with this.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Enter key on BlackBerry keyboard
« Reply #2 on: August 08, 2013, 03:24:05 AM »
Hi,

not yet with a z10 in hand, so I can't really test just yet unfortunatly.

bye,
 
Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Enter key on BlackBerry keyboard
« Reply #3 on: August 08, 2013, 03:29:23 AM »
Hi,

 have you tried "KeyPadEnter"?

bye,

Jean

cb

  • Junior Playmaker
  • **
  • Posts: 66
Re: Enter key on BlackBerry keyboard
« Reply #4 on: August 08, 2013, 09:28:58 AM »
Hi Jean,

Yes I've tried both Enter and Return keys. The keyboard just slides away on both, and no event is fired. Ideally the Z10's Enter key could be mapped to a Unity Input code such as Jump, but I'm not sure which code is issued from the device.
Right now my app just reaches a dead end after the devices keyboard is used.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Enter key on BlackBerry keyboard
« Reply #5 on: August 12, 2013, 05:09:45 AM »
Hi,

 I would do the following:

 listen to the keyboard, and make a small app to output the key on screen. then run that, and press your enter key and see what Unity think of it.


bye,

Jean

cb

  • Junior Playmaker
  • **
  • Posts: 66
Re: Enter key on BlackBerry keyboard
« Reply #6 on: September 06, 2013, 11:57:26 AM »
Just got back onto this and I'm struggling to get the code output to the screen. I've set it up to output the keycode to Debug.Log easily, what's the easiest way to put the raw code of a keyboard to a device screen?
Might even resort to writing my own keyboard text entry routine at this rate, it would be quicker  :-\

cb

  • Junior Playmaker
  • **
  • Posts: 66
Re: Enter key on BlackBerry keyboard
« Reply #7 on: September 08, 2013, 07:21:05 AM »
Well, no luck at all, I have an FSM listening to the keyboard input and outputting the current key-down value to a GUI box. This works while testing on my Mac but running on my Blackberry the value does not update when the BB keyboard is called and keys pressed on it.
This is frustrating, I'm 95% done on my app but can't enter a player name and dismiss the keyboard on my device with a simple press of Return.

Has anyone managed to write any code to grab the keycodes of any device the code runs on?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Enter key on BlackBerry keyboard
« Reply #8 on: September 08, 2013, 02:39:05 PM »
Are you using a TextField?

I just tested it here and using the Return key seems to work (see attached image).

cb

  • Junior Playmaker
  • **
  • Posts: 66
Re: Enter key on BlackBerry keyboard
« Reply #9 on: September 09, 2013, 07:38:01 AM »
Yes I used a text field. I was wanting the event fired but this was not working out, the simpler way you've shown works fine so I've re-written my routine around that.
Thanks, development continues...