2 controllers for a two player fighting game

Hello I am having trouble with figuring out how to put two player controller on one pc I got two players moving on keyboard and they move left to right with two diffrent characters on two different controllers but the buttons still work only for one character like the attack buttons on both controllers make the first player attack why dosent it work for 1st controller for one guy attacks and 2nd controller for the second guys attacks?

How do you have your inputs defined? There should be two separate key bindings for each player, and this needs to be handled as two separate cases in the game logic.

bool inputPlayer1Kick = Input.GetButtonUp("Player1Kick");

bool inputPlayer2Kick = Input.GetButtonUp(“Player2Kick”);

if(true == inputPlayer1Kick)

{

// player 1 kicked

}

if(true == inputPlayer2Kick)

{

//player 2 kicked

}