Gerte
Gerte

Reputation: 97

Input Manager 2 Players with 2 Controllers

I have a game with 2 Players who can shoot, the problem is right now when i press joystick button 0 on joystick 1 they both shoot. Apparently Joy Num only works when you use Joystick Axis but i don't want the axis to shoot i want button 0.

Input Manager

Upvotes: 1

Views: 5637

Answers (2)

nameless
nameless

Reputation: 157

Mah kind of answered it already, but it looks like the problem is just your "Alt Positive Button" field should be

joystick 1 button 0

instead of

joystick button 0

Upvotes: 1

LiefLayer
LiefLayer

Reputation: 1073

This is a limitation of the current Unity InputManager. You should really try to take a look to the new Input System https://github.com/Unity-Technologies/InputSystem (still in beta testing).

PS. Right now you can actually use multiple joystick https://docs.unity3d.com/Manual/ConventionalGameInput.html

with specific joystick buttons name joystick 1 button 0 instead of joystick button 0

Upvotes: 2

Related Questions