- Home /
Unity reading brand of controller
So I'm making this game that uses the guitar hero, and/or rockband controller to move the character. A problem coming up is that I don't know how to tell/ask unity to check which brand (xbox or ps) controller is being plugged in. When you plug in a controller it outputs the brand of controller in consul, so I was wondering how to access that to tell a custom input manger to switch controls based on which type of controller is put in. I looked into Input.GetJoystickNames() but that just returns how many controllers whereas I'm concerned with type. Any ideas, thoughts?
Answer by RedHedZed · Jan 29, 2016 at 06:36 PM
You might want to take a look at Input.GetJoyStickNames() again. It can be used to get the names of the controllers.
http://docs.unity3d.com/ScriptReference/Input.GetJoystickNames.html
Your answer
Follow this Question
Related Questions
Controller shoulder buttons firing both at the same time. 0 Answers
Inconsistent Output from Input.GetAxis across controllers 1 Answer
Help needed! My Prefab won't spawn if it has input actions :( 1 Answer
Multiple controller buttons Xbox 360 & PS3 different controllers 1 Answer
Is it possible to set up multiple controllers without writing each one out in the Input Manager? 1 Answer