- Home /
How to get input from wheel(car direction) joystick?
Hello everyone, I need to get the user input from a wheel joystick, and I have been searching for a while but couldn't get any result. Does KeyCode.Joystick1Button0 have anything to do with this or someone give me some hint. THanks in advance
Answer by Montraydavis · Oct 13, 2012 at 03:31 PM
if ( Input.GetKeyDown ( KeyCode.JoystickXButtonX ) ) - Replace X appropriately for your needs.
http://docs.unity3d.com/Documentation/ScriptReference/KeyCode.Joystick1Button0.html http://docs.unity3d.com/Documentation/ScriptReference/30_search.html?q=Input
And for wheel colliders / friction http://docs.unity3d.com/Documentation/ScriptReference/WheelCollider.html http://docs.unity3d.com/Documentation/ScriptReference/30_search.html?q=wheel
Your answer
Follow this Question
Related Questions
Is there a way to create a floating JoyStick using the On-Screen Stick component? 0 Answers
Car Front Tires rotation clamped between 270° - 90° 0 Answers
How can I control cursor with joystick 4 Answers
Joystick Zone + Screen-swipe touch input clash. Solution??? 1 Answer
How to export the input history of a gama to a txt/excel file 0 Answers