Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Why losing control of controller connected to PC, windows?

Discussion in 'Input System' started by leegod, Dec 1, 2022.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,241
    PC windows 10, 64bit.
    I connected both controllers to PC via bluetooth and wireless adapter.
    Nintendo Switch Pro, Xbox one controller.

    In this environment, when first connect switch controller, it works well in game, using new input system and code. (using Gamepad phrase)

    But after play test in editor, stop play, then play again, controller does not recognized by engine and game does not get input from controller.
    Why this happen? and how to resolve?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,474
    Which unity version and input system version?
     
  3. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,241
    unity 2021.1.16f1
    input system is newest.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,474
    Update unity. That version is really old. Then update input system 1.4.4 and try again
     
  5. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,241
    hm...problem is if update 2022, unity ui something changed and my ui background something broke.

    so my error does not occur in newest unity version?
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,474
    Maybe the latest 2021.3 lts? That's already a lot newer