Hello, I am working on application which is controlled by Wireless controler. This controler has 4 buttons. Page Up, Page Down, Period and F5. Controler is working good in Android system, but not in my application created in Unity. In windows is all ok and working. Unity is not supported this keys under android? Period and F5 is working, but Page Up and Page Down not
I tried call it by Input.GetButton and Input.GetKey
I think that it must be bug in Unity. I wrote this code:
import UnityEngine
class PageTest (MonoBehaviour):
private log as string = ""
def Start ():
pass
def Update ():
if ( Input.GetButtonDown ("PageUp") ):
log = log + "PageUp Input is OK | "
if ( Input.GetButtonDown ("PageDown") ):
log = log + "PageDown Input is OK | "
if (Input.GetKeyDown (KeyCode.PageUp) ):
log = log + "PageUp keycode is OK | "
if (Input.GetKeyDown(KeyCode.PageDown)):
log = log + "PageDown keycode is OK | "
def OnGUI ():
GUI.Label (Rect (0, 0, Screen.width , Screen.height), log )
In windows is all ok. But when I compile for Android and press Page Up, it will not perform KeyCode commands, BUT it will process both, Input.GetButtonDown (“PageUp”) and Input.GetButtonDown (“PageDown”) but I only press page up. Same is for Page Down. First perform Page Up and then page down.
Any suggest?
someone who actually works in boo… wow… thats… ancient…
I tried it in Javascript, same problem.
Hooooo leeeee *******