specific gamepad detection
I'm having difficulties with input.
My game is trying to support all playstation and xbox gamepads so we set the input for ps (3 and 4 have the same mappings) and xbox (360 and one have the same mappings) controllers with specific mappings for mac and windows in the input manager.
I'm trying to detect which joysticks are plugged in and supply the player input components with the appropriate strings. The way I currently detect which joysticks are plugged in is by checking if key words existed in their names, which I got through the Input.GetJoystickNames method. The problem is that 3rd party controllers have odd names and some ps3 controllers may be named similarly to xbox controllers.
I attempted to find the driver names that the controllers were using through ManagementObjectSearcher and match them in unity. Using ManagementObjectSearcher causes unity to crash, which I believe is due to the application's rights.
Has anyone found a solution for detecting what controllers are plugged in without having solely rely on Input.GetJoystickNames?
Your answer
Follow this Question
Related Questions
Getting input outside of the Input class 0 Answers
Telling the difference between a key press, double press and hold. 0 Answers
WASD won't work 1 Answer
This is weird - Assembly hi could not be loaded 1 Answer
OnMouseButtonDown 1 Answer