Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Associating Input.GetJoystickNames() with joystick 1, 2, 3...

Discussion in 'Scripting' started by p_025, Sep 21, 2013.

  1. p_025

    p_025

    Joined:
    Apr 6, 2013
    Posts:
    20
    Simply put I'm trying to find out which joystick named in Input.GetJoystickNames() corresponds to which controller identified by "Joystick 1", "Joystick 2", etc. The array returned by Input.GetJoystickNames() simply returns controller names, and changes size when a controller is unplugged, but the controller referred to by "Joystick #" is always the same.

    What I need is a way to figure out which joystick is which. After some Googling I've found some people with the same issue but no solutions. So I hope someone here has an answer.
     
  2. pauloaguiar

    pauloaguiar

    Joined:
    May 13, 2009
    Posts:
    685
  3. p_025

    p_025

    Joined:
    Apr 6, 2013
    Posts:
    20
    Well that's nice, but it's not exactly relevant at all. That project is designed for one type of controller. I'm trying to figure out what controllers the user has connected.

    Also it seems GetJoystickNames() is incredibly unreliable, the results it gives can vary wildly between devices, sometimes even giving something as utterly useless as "Broadcom Bluetooth HID" for an Ouya controller on an Android device. Come on Unity, there must be some other information you can give developers access to.
     
  4. pauloaguiar

    pauloaguiar

    Joined:
    May 13, 2009
    Posts:
    685
    In this case, it's going to be boring.
    Maybe a complete update of the input of the unity 3d, would be nice.
    Multi input support.