Issues with joystick input...

Hello, I have a quick question about getting input from buttons on an action XL motion controller. My main issue is that Unity recognizes the controller on Mac computers, but not on Windows. (even though Windows itself does recognize the joystick). I tried to see if there are any drivers for it, but it doesn't seem so. Plus, it worked on the Mac without downloading anything. My input button name is set to "joystick button 0", but this doesn't seem to be correct (again, this works on Mac).. I can't figure out how to determine what the names of the buttons on the motion controller are (Input.GetJoystickNames doesn't work either).

I'm fairly new to Unity (only been using it for the past couple of weeks), so I may just be missing something simple.

Thanks for your help.

  • Maddy

var i = 0;
for(i = 0; i < 20; i++)
{
if(Input.GetKeyDown("joystick button " + i))
{
Debug.Log(“Joystick Button " + i + " was pressed!”);
}
}
This is for getting information out of buttons. As for motion, I used this:

Debug.Log("The Vertical Axis is "+Input.GetAxis ("PlayerJump"));
Debug.Log("The Horizontal Axis is "+Input.GetAxis ("PlayerHorizontal"));

Hope this helps!