- Home /
Recommendation for ArrowKeys/WASD Controls to Touch Controls
Is it be possible for me to convert these lines of code(arrow keys/wasd controls) into a series of touch controls?
var steerValue = Mathf.Clamp(Input.GetAxis("Horizontal"), -1, 1);
var forwardValue = Mathf.Clamp(Input.GetAxis("Vertical"), 0, 1);
var reverseValue = -1 * Mathf.Clamp(Input.GetAxis("Vertical"), -1, 0);
var handbrakeValue = Mathf.Clamp(Input.GetAxis("Jump"), 0, 1);
Or would more information be required?
Comment
Your answer