Joysticks with over 20 buttons?

We’re working with some custom joystick hardware that uses around 22 buttons. Unfortunately Unity only seems to support up to 20 buttons for a joystick (link).

Rather than have to develop a separate input solution as a plugin to get around this issue, I was hoping that the 20 button limit is merely an arbitrary number and support for more buttons (eg. up to 30) can easily be added in a new version (or an early hotfix build :wink: ) and hopefully be available before we need to tackle the issue.

If anyone knows of a way to take input from joystick buttons mapped beyond 20 in the current version of Unity then that would be helpful too.

I’d like to see Unity support the max that Windows supports (36 buttons if I’m not mistaken) but there doesn’t seem to be many others out there who need it (I’ve asked before). The only other workaround is to remap your joystick buttons to keyboard buttons.

You can use GlovePIE or Joy2Key as an external workaround if you are on Windows. Not elegant, but they work.

Thanks guys. I guess I’ll look into using emulator software rather than develop a new input system so that if Unity turn around and fix the support in the future, I haven’t wasted time.