x


Small value range from Input.GetAxis with XBox360 joystick

Hello, I have trouble getting the full range of the joystick on a xbox360 controller. When tilting the joystick just half about the way to one direction I am getting already the value 1.

How can I interpolate the value over the full axis range.

Here is my code:

Vector2 input = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"));

Thank you for your time!

more ▼

asked Nov 14 '11 at 09:18 PM

kie gravatar image

kie
16 4 4 7

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first

Hey. We (a friend of mine, actually) did find a solution.

Make sure you set Sensitivity and Gravity in the Input Manager to 1, disable *Snap" and choose an as small as possible value for Dead (0.2 worked for us).

Have a nice day!

more ▼

answered Dec 04 '11 at 09:57 PM

kie gravatar image

kie
16 4 4 7

(comments are locked)
10|3000 characters needed characters left
Be the first one to answer this question
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:

x123
x106
x35
x18

asked: Nov 14 '11 at 09:18 PM

Seen: 883 times

Last Updated: Dec 04 '11 at 09:57 PM