Hello, I’m having trouble with the new input system.
It works fine in editor, but not when I do an x86_64 build, what am I doing wrong?
(Forgot to say, i’m currently using a wired xbox one controller.)
This is basically the code i’m using:
using UnityEngine.InputSystem;
public class InputManager : MonoBehaviour
{
public Gamepad gamePad = Gamepad.current;
public Vector2 move = new Vector2();
public Vector2 rotate = new Vector2();
void Update()
{
bool crouch = gamePad.buttonEast.isPressed;
bool interactPrimary = ( gamePad.leftTrigger.ReadValue() >= 0.5 );
bool interactSecondary = (gamePad.rightTrigger.ReadValue() >= 0.5);
move = gamePad.leftStick.ReadValue();
rotate = gamePad.rightStick.ReadValue();
}
}
And here’s a snip of my unity settings.
