- Home /
Input.GetJoystickNames() only seems to get updated on Unity 5 launch on Mac
Running Unity 5.0.1 on Mac OSX 10.10.3 and i can only get refreshed information on Input.GetJoystickNames() when i restart Unity. Plugging or unplugging controllers while Unity is running doesn't seem to have any impact. If i launch Unity with one controller connected it will say i have one controller and log it just fine but if i unplug it or plug any others the result is always the same, he keeps returning that one controller i had connected when Unity launched. I have tried with several controllers connected at the same time and even with none. I'm testing with Xbox 360 controllers.
Same issue here on Windows. I'd love to know how to detect the unplug =(.
Answer by Crazak · Nov 19, 2015 at 10:05 AM
@Alakanu It's an hardware thing. You can try the Rewired input plugin which handles plugging, unplugging and re-plugging on the editor and even at runtime. That's how i ended up solving my issues :)
Yeah, I figured that the Rewired plugin is the thing I'd need. I didn't have the spare money at the time so I started a new project already..
Sadly, I don't have the spare money aswell. Gotta find out how they did it then =). Thanks for the answer
Your answer
![](https://koobas.hobune.stream/wayback/20220613193436im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Input Configuration in Build resets all axis to joystick axis 0 1 Answer
Tattie Bogle doesn't distinguish between multiple Xbox 360 controllers for Mac OS X El Capitan 0 Answers
How to get input from wheel(car direction) joystick? 1 Answer
Is there a way to create a floating JoyStick using the On-Screen Stick component? 0 Answers
Multiple joystick input 2 Answers