I am new to Unity3d and have a problem with Joystick and Keyboard support for a coop game.
Player 1 controlls his character movement with Keyboard inputs. This works like a charm.
Player 2 movement is bound to the leftstick of all joysticks. If i tilt the left stick of the joystick both player 1 and player 2 are moving.
What am i doing wrong?
I tried to change the “joy num” on the “Horizontal” input to Joystick 11 but that also did not help. Is there no way to force input to be recognized only by keyboard?
Thanks!
Player 1
h=Input.GetAxisRaw ("Horizontal");
v=Input.GetAxisRaw ("Vertical");
Player 2
v=-Input.GetAxisRaw("PS4_yAxis_LeftStick");
h=Input.GetAxisRaw ("PS4_xAxis_LeftStick");