playMaker

Author Topic: physical buttons on cellphone + 'Get Key Down' action  (Read 4352 times)

divertoso

  • Playmaker Newbie
  • *
  • Posts: 15
physical buttons on cellphone + 'Get Key Down' action
« on: April 19, 2013, 03:43:52 PM »
hi guys

I used this script:
Code: [Select]
#pragma strict

function Start () {

}

function Update () {

    if (Input.GetKeyDown(KeyCode.Escape))
   
Application.Quit();

}

(now look the image attachmented)

And it work's when i pressed the button nº 3 on samsung galaxy S, the application quit.

Now i wanna to use the Get Key Down action, so i supposed that button is the escape, it's right?

My other doubt is: what key is  nº 2?

the button nº2 is equal button 5 and 8 ?? (of another phones?)

tks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: physical buttons on cellphone + 'Get Key Down' action
« Reply #1 on: April 22, 2013, 01:31:57 AM »
Hi,

 you should ask this question on the unity forum and UA, you will have more chance to get some answers as this is really a unity question, playmaker will happily listen to any key that unity exposes, but I am not sure how it relates to your cases indeed.

bye,

 Jean

MrMitch

  • Full Member
  • ***
  • Posts: 131
    • Rage Quit Games - Coming Soon
Re: physical buttons on cellphone + 'Get Key Down' action
« Reply #2 on: May 25, 2013, 03:30:18 PM »
I tested this and it works on galaxy note 2