Hello, I usually use unity3d with the input manager, but I got a new gamepad and decided to have a go with inControl library (GitHub - pbhogan/InControl: An input manager for Unity that tames the cross-platform controller beast.)
In order to get the value of buttons / analogs (I’m using generic controller)
I have tried:
using UnityEngine;
using System.Collections;
using InControl;
public class pax2 : MonoBehaviour {
// Use this for initialization
void Start () {
InputManager.Setup();
}
// Update is called once per frame
void Update () {
InputManager.Update();
Debug.Log ("Analog [1]: "+ InputManager.Devices[1].Analogs[1].Value ); // get analog 1 value
}
}
Values are reported back ok only the first time, afterwards they seem to be stuck. What am I missing?
Thanks in advance.