Trying to map to Xbox 360 controller, but right thumbstick is not functioning.

I attempted to make a different button in the input area (which I have successfully done for other buttons on the gamepad) but am having problems with the right thumbstick. I found the articles talking about the joystick setup, and found that for my system (Windows) with a basic Xbox 360 controller, the right thumbstick should be mapped to Axis 4(X) and Axis 5(Y). I tried for testing purposes just linking the right thumbstick axis to my movement setup (which was already working for my left thumbstick). The character just goes running off in a single direction, not even accounting for the thumbstick movement.

As for the code, this is it, but as I said, it was working fine when mapped to the left thumbstick;

void FixedUpdate()
		float h = Input.GetAxisRaw("Horizontal");
		float v = Input.GetAxisRaw ("Vertical");

		Move (h, v);

	void Move(float h, float v)
		movement.Set (h, 0f, v);
		movement = movement.normalized * speed * Time.deltaTime;
		playerRigidbody.MovePosition (transform.position + movement);

Could really use some help on this, thanks!

Edit: Using Unity version 4.6.0b20

You have the right axis, for certain. You need to look at your dead zone as at the moment it is not high enough so it is registering the tiny-est of movement, 360 pads normally don’t quite sit at absolute zero anyway(especially when you have had them for a bit).

Try this :

Dead = 0.19,
Sensitivity = 2

This worked for me :slight_smile: