Skip to content

Commit 7b17520

Browse files
author
David Kline
authored
Merge pull request #3001 from SimonDarksideJ/mrtk_development_InputSystemProfileTidy
Tidying up the Input System profile
2 parents 39388fe + 893d1d4 commit 7b17520

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

Assets/MixedRealityToolkit/_Core/Definitions/InputSystem/MixedRealityInputSystemProfile.cs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ public MixedRealityInputActionsProfile InputActionsProfile
2828
private set { inputActionsProfile = value; }
2929
}
3030

31-
[SerializeField]
32-
[Tooltip("Gesture Mapping Profile for recognizing gestures across all platforms.")]
33-
private MixedRealityGesturesProfile gesturesProfile;
34-
35-
/// <summary>
36-
/// Gesture Mapping Profile for recognizing gestures across all platforms.
37-
/// </summary>
38-
public MixedRealityGesturesProfile GesturesProfile
39-
{
40-
get { return gesturesProfile; }
41-
private set { gesturesProfile = value; }
42-
}
4331

4432
[SerializeField]
4533
[Tooltip("Input Action Rules Profile for raising actions based on specific criteria.")]
@@ -67,6 +55,20 @@ public MixedRealityPointerProfile PointerProfile
6755
private set { pointerProfile = value; }
6856
}
6957

58+
[SerializeField]
59+
[Tooltip("Gesture Mapping Profile for recognizing gestures across all platforms.")]
60+
private MixedRealityGesturesProfile gesturesProfile;
61+
62+
/// <summary>
63+
/// Gesture Mapping Profile for recognizing gestures across all platforms.
64+
/// </summary>
65+
public MixedRealityGesturesProfile GesturesProfile
66+
{
67+
get { return gesturesProfile; }
68+
private set { gesturesProfile = value; }
69+
}
70+
71+
7072
private IMixedRealitySpeechSystem speechSystem;
7173

7274
/// <summary>
@@ -143,4 +145,4 @@ public MixedRealityControllerVisualizationProfile ControllerVisualizationProfile
143145
private set { controllerVisualizationProfile = value; }
144146
}
145147
}
146-
}
148+
}

Assets/MixedRealityToolkit/_Core/Inspectors/Profiles/MixedRealityInputSystemProfileInspector.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ namespace Microsoft.MixedReality.Toolkit.Core.Inspectors.Profiles
1313
public class MixedRealityInputSystemProfileInspector : MixedRealityBaseConfigurationProfileInspector
1414
{
1515
private SerializedProperty inputActionsProfile;
16-
private SerializedProperty gesturesProfile;
1716
private SerializedProperty inputActionRulesProfile;
1817
private SerializedProperty pointerProfile;
18+
private SerializedProperty gesturesProfile;
1919
private SerializedProperty speechCommandsProfile;
20-
private SerializedProperty controllerVisualizationProfile;
2120
private SerializedProperty enableControllerMapping;
2221
private SerializedProperty controllerMappingProfile;
22+
private SerializedProperty controllerVisualizationProfile;
2323

2424
private void OnEnable()
2525
{
@@ -34,13 +34,13 @@ private void OnEnable()
3434
}
3535

3636
inputActionsProfile = serializedObject.FindProperty("inputActionsProfile");
37-
gesturesProfile = serializedObject.FindProperty("gesturesProfile");
3837
inputActionRulesProfile = serializedObject.FindProperty("inputActionRulesProfile");
3938
pointerProfile = serializedObject.FindProperty("pointerProfile");
39+
gesturesProfile = serializedObject.FindProperty("gesturesProfile");
4040
speechCommandsProfile = serializedObject.FindProperty("speechCommandsProfile");
41-
controllerVisualizationProfile = serializedObject.FindProperty("controllerVisualizationProfile");
42-
enableControllerMapping = serializedObject.FindProperty("enableControllerMapping");
4341
controllerMappingProfile = serializedObject.FindProperty("controllerMappingProfile");
42+
enableControllerMapping = serializedObject.FindProperty("enableControllerMapping");
43+
controllerVisualizationProfile = serializedObject.FindProperty("controllerVisualizationProfile");
4444
}
4545

4646
public override void OnInspectorGUI()
@@ -73,13 +73,13 @@ public override void OnInspectorGUI()
7373
bool changed = false;
7474

7575
changed |= RenderProfile(inputActionsProfile);
76-
changed |= RenderProfile(gesturesProfile);
7776
changed |= RenderProfile(inputActionRulesProfile);
7877
changed |= RenderProfile(pointerProfile);
78+
changed |= RenderProfile(gesturesProfile);
7979
changed |= RenderProfile(speechCommandsProfile);
80-
changed |= RenderProfile(controllerVisualizationProfile);
8180
EditorGUILayout.PropertyField(enableControllerMapping);
8281
changed |= RenderProfile(controllerMappingProfile);
82+
changed |= RenderProfile(controllerVisualizationProfile);
8383

8484
if (!changed)
8585
{

0 commit comments

Comments
 (0)