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?
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?
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.