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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Input.GetJoystickNames ().Length returning 0

Discussion in 'iOS and tvOS' started by hasseyg, Dec 28, 2015.

  1. hasseyg

    hasseyg

    Joined:
    Nov 16, 2013
    Posts:
    78
    Hi, before Unity 5.3, Input.GetJoystickNames ().Length was returning 1 when my MFI controller was connected to my iPad. Now the list is empty even though the controller is definitely connected and other games are detecting it successfully. Has anyone else had this problem?

    thanks
     
  2. Thorny2000

    Thorny2000

    Joined:
    Sep 18, 2014
    Posts:
    53
    Try connecting your controller and then restarting the Unity editor. I'm having to do this on a Mac - could be the same thing.
     
  3. jyves69

    jyves69

    Joined:
    Jan 3, 2014
    Posts:
    9
    Hi Hasseyg,

    we have the same issue here.
    Did you find a solution ?

    Thanks
     
  4. jyves69

    jyves69

    Joined:
    Jan 3, 2014
    Posts:
    9
    Finally we found the issue. In Xcode, just add the GameController framework into Build Phases panel (Link Binary with libraries).
     
    Thorny2000 likes this.