Search Unity

New input system problem with gamepads

Discussion in 'Editor & General Support' started by overbuilt, Jan 20, 2020.

  1. overbuilt

    overbuilt

    Joined:
    Jan 3, 2014
    Posts:
    14
    Hello,
    Im having problem with new input system.
    Everything seems to work just fine, on local multiplayer game. Players are spawned correctly.
    But when i turn of one gamepad and turn it back again - strange thing happens. ANd it works in total random order depending on player ID. Sometime if i turn off first gamepad it still works, sometimes not (same thing happens when turning off and on again 2nd gamepad).
    Sometimes all players lost control option (seems that they don't receive broadcast message inputs - but in controller debug windows all inputs from gamepads are displayed correctly).

    OnDeviceLost() and OnDeviceRegained() are executed correctly. Do i need to assign action / id or something back to the player after turning on the gamepad?

    I cant find any information about it, only simple vide tutorials not covering this topic at all.
    I will be great full for any advice.
     
  2. overbuilt

    overbuilt

    Joined:
    Jan 3, 2014
    Posts:
    14