Skip to content

Commit d6583e2

Browse files
Stephen HodgsonStephen Hodgson
authored andcommitted
GestureManager.cs Added InteractionSourcePressed property
1 parent dd6d420 commit d6583e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Assets/HoloToolkit/Input/Scripts/GestureManager.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ public bool InteractionSourceDetected
102102
get { return trackedInteractionSource.Count > 0; }
103103
}
104104

105+
/// <summary>
106+
/// InteractionSourcePressed track the interaction pressed state.
107+
/// Returns true if the list of pressed interactions is not empty.
108+
/// </summary>
109+
public bool InteractionSourcePressed
110+
{
111+
get { return pressedInteractionSource.Count > 0; }
112+
}
113+
105114
#endregion
106115

107116
#if UNITY_EDITOR || UNITY_STANDALONE

0 commit comments

Comments
 (0)