Joystick Docs?

I searched everywhere, and the only reference to the Joystick were 2 posts in the forums, one of which had a webplayer sample but no source. Where are the docs hiding?

I’ve experimented a bit with it, and Unity seems to automatically pick up my joystick (nice!), but I need to change several things:

  1. First, pushing/pulling the stick forward and reverse results in the opposite object movement, can I change a joystick setting for this or do I have to change the physics (force) instead?

  2. I want to turn my object by twisting the stick. How do I set this?

  3. I want to “slew” my object (move sideways) by pushing the stick left or right, how do I set this?

  4. I understand Unity supports multiple joysticks, I plan on using 3. How does Unity decide which is Joystick1, Joystick2 and Joystick3?

Thanks!

http://unity3d.com/Documentation/Manual/Input.html

http://unity3d.com/Documentation/Components/class-InputManager.html

http://unity3d.com/Documentation/ScriptReference/Input.html

Well there they are! Thanks! :smile: :smile:

Looks very easy to use, but I have two questions:

  1. In the pull down menu in the input manager it shows 4 joysticks, for some reason I thought Unity supported up to 10 joysticks. Is the limit 4 joysticks or does it show 4 because I only have 4 USB ports?

  2. Joachim - do you ever sleep? It’s 2:40 PM in Hawaii, it’s got to be in the middle of the night where you live. Can’t believe you’re still up! :shock:

It’s limited to 4 from the gui. If someone ever needs more than 4 joysticks at once, we will gladly enable more. (Otherwise we would like to keep the menu items simple)

Hey, sometimes i actually do. :slight_smile:

when?

In his dreams :wink:

I’m still not convinced that Joe isn’t actually HAL 9000 in disguise.

But it’s only 3 am in Copenhagen… the night is young.

Joachim, we are developing solutions which need more than 4 joystics, to make this happen we were mapping keyboard buttons, but now we need analogic control, so more joysticks, is it possible do enable more joysticks??