x


Xbox Controller & input manager?

Hi, im trying to create a simple way of controlling a 3rd person character with the 360 controller. I've been trawling this site all day but the instructions people have given just dont work for me.

What exactly do I have to do in the input manager to control my character with the left analog stick? All im after is just a simple "up is forward, left is left, right is right, down is down." Im using the 3rd person prefab (Unity Construction worker) and his scripts work with input.GetAxisRaw which is correct right? But when adjusting the input manager I have tried this on the Horizontal input manager settings...

Type - joystick axis

Axis - X Axis

Joy num - Joystick 1

And for Vertical I have...

Type - joystick axis

Axis - Y axis

Joy num - Joystick 1

I also made sure these are the bottom vertical & horizontal input settings, I also tried to test them from Run&Build but still no hope...

Any help would be great.

more ▼

asked May 31 '12 at 01:21 AM

Lboy gravatar image

Lboy
36 8 15 18

Forgot to add im using the wireless controller but It has got the usb charger plugged into it

May 31 '12 at 02:31 AM Lboy
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I wrote a script that wraps Gamepad input.

Using it you can access the analogue stick like so:

Gamepad.GetAxis(Gamepad.Axis.LeftStick);

You can download the script here.

more ▼

answered May 08 at 01:32 AM

fasfasdfff gravatar image

fasfasdfff
1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1426
x1081
x549
x62
x52

asked: May 31 '12 at 01:21 AM

Seen: 832 times

Last Updated: May 08 at 01:32 AM