Hello,
I am using a Saitek x52 Pro joystick, which is without a doubt one of the best joysticks ever devised. It has a ton of great buttons and axes. The problem is Unity only exposes 20 buttons and 8 axes in the Input Manager. This means I can’t map all of the controls on this joystick. As it is right now, I can’t detect input from any of the three hat switches.
Is there any work-around available to map those extra inputs? I have done a lot of searching around on the forums and documentation and from what I can tell, I’m screwed. At least in this version of Unity. It seems like it would be an easy fix for the Unity Devs to open up a much larger number to accommodate the more advanced joysticks like this one.
Here are related posts and documentation that lead me to believe there is no solution currently available. Please correct me if I am wrong!
Script reference for KeyCode
The list of supported joystick buttons goes from 0 to 19.
What if the button/axis you want is not on this list?
Input Manager documentation
In the Input Manager when you click on Axis the popup menu lists Axes X, Y, and 3rd through 8th.
What do I do if there are axes on my joystick that don’t show up on this list?
Looks like guavaman is running into related issues in his post here:
Joystick detection and direct axis detection
I want to echo his frustration with the Input Manager.
I share these same sentiments.
If anyone knows of solutions to these problems I would greatly appreciate hearing about them.