Xbox controller buttons - difference from pad 1 and 2

Hey, I set up all the buttons for first and second pad and as far as axis goes - everything is sweet the only problem is with buttons.

Here’s how I set up the buttons

alt text
alt text

still, if any player presses a button - it’s like both of them did.

here’s the script for comparison:

var secondPlayer = false; // marked to true (I checked) if it's second player's character
private var litButtonX = "ButtonX";

function Start(){
	if(secondPlayer)
		litButtonX += "2";
		
		print(litButtonX);
}
function Update () {
	if(Input.GetButtonDown(litButtonX)){
		Shoot();
	}
}

Now, it prints “ButtonX”, “ButtonX2” alright, and the buttons seem to be set up ok,
so why is that it doesn’t matter who presses “X” - every player’s character shoots?

Turns out it was a bug.
The functionality can be successfully extracted by
Input.GetKeyDown(KeyCode.Joystick1Button2)
kind of functions.

Big thanks to NCarter for the solution!