- Home /
Question by
Tanoshimi2000 · Mar 25, 2014 at 01:35 AM ·
external controller
How to separate gas from brake on y-axis controller
Gas is y-axis from 0 to 1. Brake is y-axis from 0 to -1. How can I tell if the brake is pressed (at the same time as the gas)? Pressing the brake just adds a negative value to the value provided by the gas pedal, so I can't distinguish between less gas or same gas + some brake.
Can we map the negative y-axis to an input control, and the positive to a different one, like "LeftVertical" and "RightVertical"? If so, how is that done?
Comment
Your answer
Follow this Question
Related Questions
InputManager doesn't detect gamepad numbers correctly 1 Answer
Get analog values of xBox controller's axis 1 Answer
Animation on a child controlled by a gameObject 0 Answers
Jump Unpredictable 1 Answer
When using Xbox 360 Controller the camera keeps moving even though the joystick aren't being moved 1 Answer