public Vector2 LeftAnalog() { if (keyboardEnabled) { int xValue = 0; if (Input.GetKey(KeyCode.A)) { xValue--; } if (Input.GetKey(KeyCode.D)) { xValue++; } int yValue = 0; if (Input.GetKey(KeyCode.S)) { yValue--; } if (Input.GetKey(KeyCode.W)) { yValue++; } return(new Vector2(xValue, yValue)); } return(JoystickInput.LeftAnalog(state)); }