internal void UpdateLeftStickWithValue(Vector2 value, ulong updateTick, float deltaTime) { LeftStickLeft.UpdateWithValue(Mathf.Max(0.0f, -value.x), updateTick, deltaTime); LeftStickRight.UpdateWithValue(Mathf.Max(0.0f, value.x), updateTick, deltaTime); if (InputManager.InvertYAxis) { LeftStickUp.UpdateWithValue(Mathf.Max(0.0f, -value.y), updateTick, deltaTime); LeftStickDown.UpdateWithValue(Mathf.Max(0.0f, value.y), updateTick, deltaTime); } else { LeftStickUp.UpdateWithValue(Mathf.Max(0.0f, value.y), updateTick, deltaTime); LeftStickDown.UpdateWithValue(Mathf.Max(0.0f, -value.y), updateTick, deltaTime); } }
internal void UpdateLeftStickWithValue(Vector2 value) { LeftStickLeft.UpdateWithValue(Math.Max(0.0f, -value.X)); LeftStickRight.UpdateWithValue(Math.Max(0.0f, value.X)); if (InputManager.InvertYAxis) { LeftStickUp.UpdateWithValue(Math.Max(0.0f, -value.Y)); LeftStickDown.UpdateWithValue(Math.Max(0.0f, value.Y)); } else { LeftStickUp.UpdateWithValue(Math.Max(0.0f, value.Y)); LeftStickDown.UpdateWithValue(Math.Max(0.0f, -value.Y)); } }