Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: divertoso on April 19, 2013, 03:43:52 PM

Title: physical buttons on cellphone + 'Get Key Down' action
Post by: divertoso 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
Title: Re: physical buttons on cellphone + 'Get Key Down' action
Post by: jeanfabre 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
Title: Re: physical buttons on cellphone + 'Get Key Down' action
Post by: MrMitch on May 25, 2013, 03:30:18 PM
I tested this and it works on galaxy note 2