Skip to content

Commit 5968bb8

Browse files
author
Stephen Hodgson
committed
Renamed ManualHandControl to EditorInputControl.
Moved ManualGazeControl and HandGuidance.
1 parent d4b8e47 commit 5968bb8

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Assets/HoloToolkit/Input/Scripts/InputSources/EditorHandsInputSource.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace HoloToolkit.Unity.InputModule
1212
/// than the standard GestureRecognizer.
1313
/// </summary>
1414
/// <remarks>This input source only triggers SourceUp and SourceDown for the hands. Everything else is handled by InteractionInputSource.</remarks>
15-
[RequireComponent(typeof(ManualHandControl))]
15+
[RequireComponent(typeof(EditorInputControl))]
1616
public class EditorHandsInputSource : BaseInputSource
1717
{
1818
/// <summary>
@@ -47,7 +47,7 @@ public EditorHandData(uint handId)
4747
public Vector3 CumulativeDelta;
4848
}
4949

50-
private ManualHandControl manualHandControl;
50+
private EditorInputControl editorInputControl;
5151

5252
/// <summary>
5353
/// Dispatched each frame that a hand is moving.
@@ -182,7 +182,7 @@ private void Awake()
182182
#if !UNITY_EDITOR
183183
Destroy(this);
184184
#else
185-
manualHandControl = GetComponent<ManualHandControl>();
185+
editorInputControl = GetComponent<EditorInputControl>();
186186
for (uint i = 0; i < editorHandsData.Length; i++)
187187
{
188188
editorHandsData[i] = new EditorHandData(i);
@@ -209,7 +209,7 @@ private void UpdateHandData()
209209
float time;
210210
float deltaTime;
211211

212-
if (manualHandControl.UseUnscaledTime)
212+
if (editorInputControl.UseUnscaledTime)
213213
{
214214
time = Time.unscaledTime;
215215
deltaTime = Time.unscaledDeltaTime;
@@ -220,19 +220,19 @@ private void UpdateHandData()
220220
deltaTime = Time.deltaTime;
221221
}
222222

223-
if (manualHandControl.LeftHandInView)
223+
if (editorInputControl.LeftHandInView)
224224
{
225225
GetOrAddHandData(0);
226226
currentHands.Add(0);
227227

228-
UpdateHandState(manualHandControl.LeftHandSourceState, editorHandsData[0], deltaTime, time);
228+
UpdateHandState(editorInputControl.LeftHandSourceState, editorHandsData[0], deltaTime, time);
229229
}
230230

231-
if (manualHandControl.RightHandInView)
231+
if (editorInputControl.RightHandInView)
232232
{
233233
GetOrAddHandData(1);
234234
currentHands.Add(1);
235-
UpdateHandState(manualHandControl.RightHandSourceState, editorHandsData[1], deltaTime, time);
235+
UpdateHandState(editorInputControl.RightHandSourceState, editorHandsData[1], deltaTime, time);
236236
}
237237
}
238238

Assets/HoloToolkit/Input/Scripts/Utilities/ManualHandControl.cs renamed to Assets/HoloToolkit/Input/Scripts/Utilities/Interactions/EditorInputControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public bool TryGetVelocity(out Vector3 velocity)
8383
/// <summary>
8484
/// Class for manually controlling the hand(s) when not running on HoloLens (in editor).
8585
/// </summary>
86-
public class ManualHandControl : MonoBehaviour
86+
public class EditorInputControl : MonoBehaviour
8787
{
8888
public float HandReturnFactor = 0.25f; /// [0.0,1.0] the closer this is to one the faster it brings the hand back to center
8989
public float HandTimeBeforeReturn = 0.5f;

Assets/HoloToolkit/Input/Scripts/Utilities/ManualHandControl.cs.meta renamed to Assets/HoloToolkit/Input/Scripts/Utilities/Interactions/EditorInputControl.cs.meta

File renamed without changes.

Assets/HoloToolkit/Input/Scripts/Utilities/ManualGazeControl.cs renamed to Assets/HoloToolkit/Input/Scripts/Utilities/Interactions/ManualGazeControl.cs

File renamed without changes.

Assets/HoloToolkit/Input/Scripts/Utilities/ManualGazeControl.cs.meta renamed to Assets/HoloToolkit/Input/Scripts/Utilities/Interactions/ManualGazeControl.cs.meta

File renamed without changes.

Assets/HoloToolkit/Input/Scripts/Utilities/HandGuidance.cs renamed to Assets/HoloToolkit/Input/Scripts/Utilities/Managers/HandGuidance.cs

File renamed without changes.

Assets/HoloToolkit/Input/Scripts/Utilities/HandGuidance.cs.meta renamed to Assets/HoloToolkit/Input/Scripts/Utilities/Managers/HandGuidance.cs.meta

File renamed without changes.

0 commit comments

Comments
 (0)