internal void UpdateRightStickWithRawValue(Vector2 value, ulong updateTick, float deltaTime) { RightStickLeft.UpdateWithRawValue(Mathf.Max(0.0f, -value.x), updateTick, deltaTime); RightStickRight.UpdateWithRawValue(Mathf.Max(0.0f, value.x), updateTick, deltaTime); if (InputManager.InvertYAxis) { RightStickUp.UpdateWithRawValue(Mathf.Max(0.0f, -value.y), updateTick, deltaTime); RightStickDown.UpdateWithRawValue(Mathf.Max(0.0f, value.y), updateTick, deltaTime); } else { RightStickUp.UpdateWithRawValue(Mathf.Max(0.0f, value.y), updateTick, deltaTime); RightStickDown.UpdateWithRawValue(Mathf.Max(0.0f, -value.y), updateTick, deltaTime); } }
internal void UpdateRightStickWithRawValue(Vector2 value) { RightStickLeft.UpdateWithRawValue(Math.Max(0.0f, -value.X)); RightStickRight.UpdateWithRawValue(Math.Max(0.0f, value.X)); if (InputManager.InvertYAxis) { RightStickUp.UpdateWithRawValue(Math.Max(0.0f, -value.Y)); RightStickDown.UpdateWithRawValue(Math.Max(0.0f, value.Y)); } else { RightStickUp.UpdateWithRawValue(Math.Max(0.0f, value.Y)); RightStickDown.UpdateWithRawValue(Math.Max(0.0f, -value.Y)); } }