input.GetAxis for multiplayer

Hi all,

I have a question.
If two joy sticks are used for two players, how is it possible to recognize each joystick’s input as different while using input.GetAxis for the scripting?
Maybe it is not possible to use this function.

In Project Settings → Input, you simply create additional axes for each player. So you’d have Horizontal_P1, Horizontal_P2, Vertical_P1, Vertical_P2, etc. etc.
Then you access the appropriate axis using, for example:

float player1Speed = Input.GetAxis("Horizontal_P1");