Why CrossPlatformInput isn't working ?

While I used just Input it was better. But with CrossPlatformInput it doesn’t work at all.
I used this script, but with only switched Input to CrossPlatfromInput.
My gampead is Mad CATZ CTRL R - checked with bluetooth and PC modes. Unity 5.6.
Also I don’t really know why we need CrossPlatformInput, usual input seems works the same way in Editor and on Android device ?

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityStandardAssets.CrossPlatformInput;

public class GamePadRenderer : MonoBehaviour {

    float speed = 0.01f;
    float rotation;
    public GameObject aButton;
    public GameObject bButton;
    public GameObject xButton;
    public GameObject yButton;
    public GameObject leftThumbstick;

    // Use this for initialization
    void Start () {

    }

    // Update is called once per frame
    void Update () {

        if(CrossPlatformInputManager.GetButton ("AButton")) {
            aButton.active = false;
        } else {
            aButton.active = true;
        }
        if(CrossPlatformInputManager.GetButton ("BButton")) {
            bButton.active = false;
        } else {
            bButton.active = true;
        }
        if(CrossPlatformInputManager.GetButton ("XButton")) {
            xButton.active = false;
        } else {
            xButton.active = true;
        }
        if(CrossPlatformInputManager.GetButton ("YButton")) {
            yButton.active = false;
        } else {
            yButton.active = true;
        }

        rotation = CrossPlatformInputManager.GetAxis ("XAxis");
        Debug.Log (rotation);

        if (Mathf.Abs(rotation) >= 0.2f)
            leftThumbstick.transform.eulerAngles = new Vector3 (0, 0, -rotation * 10);
    }
}

CrossPlatformInput does what it says, help with crossplatform inputs. But besides that, you are talking about, not working, thats not a good error message someone can work with. Could you provide more details of what is your problem, what “is not working” etc?

I didn’t see any error messages. Debug.Log(leftThumbstick.transform.eulerAngles) just shows 0,0,0 one time. No reaction to joypad movement - object doesn’t change it’s tilt according to joypad’s.

Did you set all the inputs in your project settings → input right?

Yes (you can download my project- in uploaded version was used usual Input, but it’s easy to edit - just several strings)

I think, your controller is not working expected. I tried it with my xbox one controller on MacOS and it is just working, so the left cylinder is rotating to left or right.

Thank you very much. I tried project on Android and it seems that it works there (object moves slightly to left, right - about 5 degrees). Could you describe - how much tilt you seen ?

Didn’t check the exact amount, but 5 degrees could be in that range. It was not every much.

Indeed it was incompatibility of Unity Editor with MadCatz gamepad (But MadCatz works fine with Unity game on Android). I tried XBox One with editor - it’s fine.
And still not clear - why CrossPlatformInput isn’t working in Editor or on Android. Usual Input works exactly the same way on Android as in Editor, so may be CrossPlatformInput isn’t relevant anymore ?