@@ -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
0 commit comments