private void Update() { if (dpadTouched) { Vector2 pos = Input.mousePosition; pos.x = -(pos.x / Screen.width - 0.5f); pos.y = pos.y / Screen.height - 0.5f; rcCarScript.SetTouchAxis(pos); } }
void DoTouchpadAxisChanged(object sender, ControllerClickedEventArgs e) { rcCarScript.SetTouchAxis(e.touchpadAxis); }
void DoTouchpadAxisChanged(object sender, ControllerInteractionEventArgs e) { rcCarScript.SetTouchAxis(e.touchpadAxis); }