Search Unity

Joy num - always random

Discussion in 'Input System' started by Dawid_Matuszewski, Mar 26, 2019.

  1. Dawid_Matuszewski

    Dawid_Matuszewski

    Joined:
    Mar 2, 2016
    Posts:
    23
    Hello,
    I'm working on game project where I use 2 gamepads (2 local players, split screen).
    In Input Manager I have:
    J1Horizontal (Joy Num = Joystick1) Gamepad1 is under Joystick1
    J2Horizontal (Joy Num = Joystick2) Gamepad2 is under Joystick2
    etc.

    So it's works until I reopen Unity. Then gamepads are randomly under Joy Num for example, Gamepad1 is now under Joystick12 and Gamepad2 is under Joystick 4.

    I want to make Gamepad1 always be under Joy Num = Joystick1 and Gamepad2 always be under Joy Num = Joystick2.

    I know that there is one solution where I can create axes via script, but I think it is form over content.
    And also when I build project, gamepads didn't work. Only in playmode from Unity editor.

    Please help me :)
     
    Last edited: Mar 26, 2019
    wlwl2 and Kadaj like this.
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Unfortunately, this one of the known (and many) problems of joystick/gamepad support in the old input system. My recommendation would be to use Rewired or InControl to get better joystick/gamepad support than provided by Unity's built-in input manager.

    (Side note: slightly wrong forum section; this one is for the new input system; understand that it's confusing, though :))