- Home /
How can i get the same input as “Input.GetButton ("Horizontal”)” and “Input.GetButton (“Vertical”)“ using dual joystick?
Hi,
I have used Input.GetAxis("Horizontal”) & Input.GetAxis (“Vertical”) to move my aircraft and Input.GetButton ("Horizontal”) & Input.GetButton (“Vertical”) to rotate my aircraft, then i wanted to convert it for mobile device, so i have used DualJoystick by importing “Standard Assets(Mobile)” , and i can move using dual joystick , but i am not able to rotate , so please help me , how can i convert “Input.GetButton ("Horizontal”)” and “Input.GetButton (“Vertical”)“ into dual joystick input.
Answer by sarthakshah · Sep 23, 2014 at 07:31 AM
Hi, got the solution,
By using joystick's value , i got the solution.
Your answer
Follow this Question
Related Questions
rigidBody2d.rotation only updating if rigidbody is moving. 1 Answer
GameController Unity wrong Axis-Values 0 Answers
Using Joystick for movement 0 Answers
Capture Joystick Direction Accurately 2 Answers
Joystick not responding correctly 0 Answers