- Home /
Xbox 360 controller values
There is a helping program called Joysticks, which shows the values of the Axis.
How do I use those values in C#? Like for instance:
If (4th Axis Value < 0.7) Move Forward
Is there any way to do it?
Answer by oatsbarley · Jan 25, 2014 at 05:43 PM
The `Input` class deals with all user input, including controller axes. Your example in C# would be:
if (Input.GetAxis("Vertical") < 0.7f) {
// move forward
}
You can find the names of all the axes/buttons and configure your own in the Input Manager.
Please don't post updates/comments as (yet another) answer. Ins$$anonymous$$d, mark the answer you received as correct. I changed back to a comment for you.
Your answer

Follow this Question
Related Questions
Head bone rotation question 0 Answers
How to build a XZ only rigidbody drag function in local space? 1 Answer
Why are my projectiles not following Input.pos after transform movement? 2 Answers
problem with dead space kinesis module system 1 Answer
How can I get an object to orientate behind a plane? 0 Answers