using System; #if XR_LEGACY_INPUT_HELPERS_2_1_OR_NEWER || PACKAGE_DOCS_GENERATION using UnityEngine.SpatialTracking; #endif namespace UnityEngine.XR.Interaction.Toolkit { public partial class XRControllerState { #if XR_LEGACY_INPUT_HELPERS_2_1_OR_NEWER || PACKAGE_DOCS_GENERATION /// /// (Deprecated) The pose data flags of the controller. /// /// [Obsolete("poseDataFlags has been deprecated. Use inputTrackingState instead.", true)] public PoseDataFlags poseDataFlags { get => default; set => _ = value; } #endif /// /// (Deprecated) Initializes and returns an instance of . /// /// The time value for this controller. /// The position for this controller. /// The rotation for this controller. /// Whether select is active or not. /// Whether activate is active or not. /// Whether UI press is active or not. [Obsolete("This constructor has been deprecated. Use the constructors with the inputTrackingState parameter.", true)] public XRControllerState(double time, Vector3 position, Quaternion rotation, bool selectActive, bool activateActive, bool pressActive) : this(time, position, rotation, InputTrackingState.Rotation | InputTrackingState.Position, selectActive, activateActive, pressActive) { } /// /// Initializes and returns an instance of . /// /// The time value for this controller. /// The position for this controller. /// The rotation for this controller. /// The inputTrackingState for this controller. [Obsolete("This constructor has been deprecated. Use the constructor with the isTracked parameter.", true)] protected XRControllerState(double time, Vector3 position, Quaternion rotation, InputTrackingState inputTrackingState) : this(time, position, rotation, inputTrackingState, true) { } /// /// Initializes and returns an instance of . /// /// The time value for this controller. /// The position for this controller. /// The rotation for this controller. /// The inputTrackingState for this controller. /// Whether select is active or not. /// Whether activate is active or not. /// Whether UI press is active or not. [Obsolete("This constructor has been deprecated. Use the constructor with the isTracked parameter.", true)] public XRControllerState(double time, Vector3 position, Quaternion rotation, InputTrackingState inputTrackingState, bool selectActive, bool activateActive, bool pressActive) : this(time, position, rotation, inputTrackingState, true) { } /// /// Initializes and returns an instance of . /// /// The time value for this controller. /// The position for this controller. /// The rotation for this controller. /// The inputTrackingState for this controller. /// Whether select is active or not. /// Whether activate is active or not. /// Whether UI press is active or not. /// The select value. /// The activate value. /// The UI press value. [Obsolete("This constructor has been deprecated. Use the constructor with the isTracked parameter.", true)] public XRControllerState(double time, Vector3 position, Quaternion rotation, InputTrackingState inputTrackingState, bool selectActive, bool activateActive, bool pressActive, float selectValue, float activateValue, float pressValue) : this(time, position, rotation, inputTrackingState, true) { } /// /// (Deprecated) Resets all the interaction states that are based on whether they occurred "this frame". /// /// /// ResetInputs has been renamed. Use instead. /// [Obsolete("ResetInputs has been renamed. Use ResetFrameDependentStates instead. (UnityUpgradable) -> ResetFrameDependentStates()", true)] public void ResetInputs() { } } }