- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
ray2yar · Jun 28, 2014 at 06:30 PM ·
androidinput.getkey
Android KeyCode Problem
I am trying to get my program to work on Android. Unity4 Remote is installed on the device and the program correctly syncs on Play. Touches, and tilts are correctly read. HOWEVER: when the user touches the MENU, or the BACK buttons nothing happens.
if(Input.GetKey(KeyCode.Menu)){ Debug.Log("Menu Key pressed"); }
if(Input.GetKey(KeyCode.Escape)){ Debug.Log("Back Key pressed"); }
^^key above yeilds no results. Ideas how to fix this problem?
Comment
The events DO work if the project is "built/run" but do not with with just "play"... is this normal?
Your answer
![](https://koobas.hobune.stream/wayback/20220613152730im_/https://answers.unity.com/themes/thub/images/avi.jpg)