Skip to content

Commit 6f0f9d3

Browse files
authored
Merge pull request #9655 from keveleigh/deprecate
Deprecate `DeviceManagerProfile` in favor of inherited property
2 parents 1d1b6ce + f94dc07 commit 6f0f9d3

8 files changed

+7
-7
lines changed

Assets/MRTK/Core/Definitions/MixedRealityInputDataProviderConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public struct MixedRealityInputDataProviderConfiguration : IMixedRealityServiceC
4545
/// <summary>
4646
/// Device manager specific configuration profile.
4747
/// </summary>
48+
[Obsolete("Use the Profile property instead.")]
4849
public BaseMixedRealityProfile DeviceManagerProfile => deviceManagerProfile;
4950

5051
/// <summary>

Assets/MRTK/Core/Definitions/MixedRealityServiceConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public MixedRealityServiceConfiguration(
7070
/// <summary>
7171
/// The configuration profile for the service.
7272
/// </summary>
73-
[Obsolete("Use Profile property instead")]
73+
[Obsolete("Use the Profile property instead.")]
7474
public BaseMixedRealityProfile ConfigurationProfile => configurationProfile;
7575
}
7676
}

Assets/MRTK/Core/Inspectors/Profiles/BaseMixedRealityToolkitConfigurationProfileInspector.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using Microsoft.MixedReality.Toolkit.Utilities;
54
using Microsoft.MixedReality.Toolkit.Utilities.Editor;
65
using Microsoft.MixedReality.Toolkit.Utilities.Editor.Search;
76
using System.Reflection;

Assets/MRTK/Core/Inspectors/Profiles/DataProviderAccessServiceInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected virtual void AddDataProvider()
7171
providerConfigurations.InsertArrayElementAtIndex(providerConfigurations.arraySize);
7272
SerializedProperty provider = providerConfigurations.GetArrayElementAtIndex(providerConfigurations.arraySize - 1);
7373

74-
var providerProperties = GetDataProviderConfigurationProperties(provider);
74+
ServiceConfigurationProperties providerProperties = GetDataProviderConfigurationProperties(provider);
7575
providerProperties.componentName.stringValue = $"New data provider {providerConfigurations.arraySize - 1}";
7676
providerProperties.runtimePlatform.intValue = -1;
7777
providerProperties.providerProfile.objectReferenceValue = null;

Assets/MRTK/Core/Inspectors/Profiles/MixedRealityEyeTrackingProfileInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected override bool IsProfileInActiveInstance()
4343
MixedRealityToolkit.Instance.HasActiveProfile &&
4444
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile != null &&
4545
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations != null &&
46-
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations.Any(s => profile == s.DeviceManagerProfile);
46+
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations.Any(s => profile == s.Profile);
4747
}
4848
}
4949
}

Assets/MRTK/Core/Providers/InputSimulation/Editor/MixedRealityInputSimulationProfileInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ protected override bool IsProfileInActiveInstance()
223223
return MixedRealityToolkit.IsInitialized && profile != null &&
224224
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile != null &&
225225
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations != null &&
226-
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations.Any(s => profile == s.DeviceManagerProfile);
226+
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations.Any(s => profile == s.Profile);
227227
}
228228
}
229229
}

Assets/MRTK/Providers/LeapMotion/Editor/LeapMotionDeviceManagerProfileInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected override bool IsProfileInActiveInstance()
134134
return MixedRealityToolkit.IsInitialized && profile != null &&
135135
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile != null &&
136136
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations != null &&
137-
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations.Any(s => profile == s.DeviceManagerProfile);
137+
MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.DataProviderConfigurations.Any(s => profile == s.Profile);
138138
}
139139
}
140140
}

Assets/MRTK/Services/InputSystem/MixedRealityInputSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ private void CreateDataProviders()
288288
for (int i = 0; i < profile.DataProviderConfigurations.Length; i++)
289289
{
290290
MixedRealityInputDataProviderConfiguration configuration = profile.DataProviderConfigurations[i];
291-
object[] args = { this, configuration.ComponentName, configuration.Priority, configuration.DeviceManagerProfile };
291+
object[] args = { this, configuration.ComponentName, configuration.Priority, configuration.Profile };
292292

293293
DebugUtilities.LogVerboseFormat(
294294
"Attempting to register input system data provider {0}, {1}, {2}",

0 commit comments

Comments
 (0)