Hey,
I have a Wii U Pro controller I’m connecting with wjoy on Mac. The Wii U Pro controller is much nicer than an XBox one because it uses Bluetooth and not the weird external wireless dongle I need for the XBox.
I’d like to use it as my test controller for my game, but I can’t even get Unity to recognize it. And I’m not sure how to even make it recognize it. I’ve tried this:
Debug.Log( "Connected joys: " + Input.GetJoystickNames() );
And that prints an empty array.
I’ve also tried:
for ( int joy = 0; joy < 8; joy++ )
{
for (int button = 0; button < 20; button++ )
{
try
{
if( Input.GetKeyDown("joystick " + joy + " button " + button ) )
{
Debug.Log( "joystick " + joy + " button " + button );
}
}
catch (System.Exception e) {}
}
}
And that prints nothing as I mash buttons (both on my keyboard and on the controller).
Not even sure how to get this working at all. Unity’s Input is soooooooooooooo bad. I’m not really excited to maybe spend $40 on a plugin. So does anybody know a way to find what joystick it considers it, and/or how to get it to work?
OR – what do I need to do in order to get this controller recognized? It works great in other apps, like Dolphin, for example.