Home Game Development unity – Trouble GamePad enter on iOS however works excellent on Android

unity – Trouble GamePad enter on iOS however works excellent on Android

0
unity – Trouble GamePad enter on iOS however works excellent on Android

[ad_1]

I’m having bother getting enter from on iOS units (iPhone 6 Plus and iPad). Here is my code,

    if (Input.GetKey (KeyCode.JoystickButton14))// A
    {
        chr_show = "A";
    }
    if (Input.GetKey (KeyCode.JoystickButton13))// B
    {
        chr_show = "B";
    }
         ...........................................

    if (Input.GetKey (KeyCode.JoystickButton11))// Select
    {
        chr_show = "SELECT";
    }

And in OnGUI()

    GUI.Label (new Rect(0,0,100,100), "Pressed Button : "+chr_show, guiStyle);

Code works excellent on Android gadget. I even have tried following:
Input Manager Inspector

        if (Input.GetButton ("JSButton"))// JSButton
        {
            chr_show = "JS Button 14";
        }

Please Help Me!

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here