@@ -58,22 +58,22 @@ public EditorHandData(uint handId)
5858 /// Delay before a finger pressed is considered.
5959 /// This mitigates fake finger taps that can sometimes be detected while the hand is moving.
6060 /// </summary>
61- private const float fingerPressDelay = 0.07f ;
61+ private const float FingerPressDelay = 0.07f ;
6262
6363 /// <summary>
6464 /// The maximum interval between button down and button up that will result in a clicked event.
6565 /// </summary>
66- private const float maxClickDuration = 0.5f ;
66+ private const float MaxClickDuration = 0.5f ;
6767
6868 /// <summary>
6969 /// Number of fake hands supported in the editor.
7070 /// </summary>
71- private const int editorHandsCount = 2 ;
71+ private const int EditorHandsCount = 2 ;
7272
7373 /// <summary>
7474 /// Array containing the hands data for the two fake hands.
7575 /// </summary>
76- private readonly EditorHandData [ ] editorHandsData = new EditorHandData [ editorHandsCount ] ;
76+ private readonly EditorHandData [ ] editorHandsData = new EditorHandData [ EditorHandsCount ] ;
7777
7878 /// <summary>
7979 /// Dictionary linking each hand ID to its data.
@@ -249,7 +249,6 @@ private EditorHandData GetOrAddHandData(uint sourceId)
249249 handData = new EditorHandData ( sourceId ) ;
250250 handIdToData . Add ( handData . HandId , handData ) ;
251251 newHands . Add ( handData . HandId ) ;
252-
253252 }
254253
255254 return handData ;
@@ -276,7 +275,7 @@ private void UpdateHandState(DebugInteractionSourceState handSource, EditorHandD
276275 if ( handSource . Pressed != editorHandData . IsFingerDownPending )
277276 {
278277 editorHandData . IsFingerDownPending = handSource . Pressed ;
279- editorHandData . FingerStateUpdateTimer = fingerPressDelay ;
278+ editorHandData . FingerStateUpdateTimer = FingerPressDelay ;
280279 }
281280
282281 // Finger presses are delayed to mitigate issue with hand position shifting during air tap.
@@ -366,7 +365,7 @@ private void SendHandStateEvents(EditorHandData editorHandData, float time)
366365 editorHandData . ManipulationInProgress = true ;
367366 }
368367 // Holds are triggered by time.
369- else if ( ! editorHandData . HoldInProgress && ( time - editorHandData . FingerDownStartTime >= maxClickDuration ) )
368+ else if ( ! editorHandData . HoldInProgress && ( time - editorHandData . FingerDownStartTime >= MaxClickDuration ) )
370369 {
371370 inputManager . RaiseHoldStarted ( this , editorHandData . HandId ) ;
372371 editorHandData . HoldInProgress = true ;
0 commit comments