Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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,472
    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:
    4,969
    Which unity version and input system version?
     
  3. leegod

    leegod

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

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,969
    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,472
    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:
    4,969
    Maybe the latest 2021.3 lts? That's already a lot newer