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

Wireless controllers no longer detected by Input.GetJoystickNames()

Discussion in 'Input System' started by M_J_James, Feb 14, 2022.

  1. M_J_James

    M_J_James

    Joined:
    Jan 24, 2018
    Posts:
    11
    Hi,

    Since migrating to Unity 2020.3.25 LTS from 2020.3.9, a wireless Xbox controller no longer shows up in Input.GetJoystickNames(). The editor never recognized it anyway, but I used to be able to rely on it showing up in a published Windows build. Is there any logical reason why this would now happen? I don't know whether to revert back to 2020.3.9 or double down on 2020.3.28?
     
  2. M_J_James

    M_J_James

    Joined:
    Jan 24, 2018
    Posts:
    11
    Sorry, my mistake. My own code was disregarding controllers with no name ("").