It seems that Input.GetJoyStickNames() is not properly grabbing the connected joystick names. When the debugger prints out the list it only shows “System.String[ ]”. I’m only testing this with a wireless xbox controller. Could it be possible that unity just doesn’t work with a wireless xbox controller? Ill look around in the house for a wired pc controller and see what happens.
Code:
void Update()
{
gamepads = Input.GetJoystickNames();
pad_count = gamepads.Length;
if (gamepads.Length == 0)
{
Debug.Log("Nothing connected!");
}
else
{
Debug.Log("Connected controllers: " + pad_count.ToString() + "\r\n" + "Controllers: " + gamepads);
}
}
