Skip to content

Commit 9442f40

Browse files
Merge pull request #2887 from keveleigh/FocusHandlerRemoval
Remove non-events from IMixedRealityFocusHandler
2 parents 76d6041 + 87ce4ed commit 9442f40

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

Assets/MixedRealityToolkit-SDK/Features/Input/Handlers/BaseFocusHandler.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,23 @@ public abstract class BaseFocusHandler : MonoBehaviour, IMixedRealityFocusHandle
1919
[Tooltip("Is focus enabled for this component?")]
2020
private bool focusEnabled = true;
2121

22-
/// <inheritdoc />
22+
/// <summary>
23+
/// Is focus enabled for this <see cref="UnityEngine.Component"/>?
24+
/// </summary>
2325
public virtual bool FocusEnabled
2426
{
2527
get { return focusEnabled; }
2628
set { focusEnabled = value; }
2729
}
2830

29-
/// <inheritdoc />
31+
/// <summary>
32+
/// Does this object currently have focus by any <see cref="IMixedRealityPointer"/>?
33+
/// </summary>
3034
public bool HasFocus => FocusEnabled && Focusers.Count > 0;
3135

32-
/// <inheritdoc />
36+
/// <summary>
37+
/// The list of <see cref="IMixedRealityPointer"/>s that are currently focused on this <see cref="UnityEngine.GameObject"/>
38+
/// </summary>
3339
public List<IMixedRealityPointer> Focusers { get; } = new List<IMixedRealityPointer>(0);
3440

3541
/// <inheritdoc />

Assets/MixedRealityToolkit/_Core/Interfaces/InputSystem/Handlers/IMixedRealityFocusHandler.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,6 @@ namespace Microsoft.MixedReality.Toolkit.Core.Interfaces.InputSystem.Handlers
1111
/// </summary>
1212
public interface IMixedRealityFocusHandler : IMixedRealityFocusChangedHandler
1313
{
14-
/// <summary>
15-
/// Does this object currently have focus by any <see cref="IMixedRealityPointer"/>?
16-
/// </summary>
17-
bool HasFocus { get; }
18-
19-
/// <summary>
20-
/// Is Focus capabilities enabled for this <see cref="UnityEngine.Component"/>?
21-
/// </summary>
22-
bool FocusEnabled { get; set; }
23-
24-
/// <summary>
25-
/// The list of <see cref="IMixedRealityPointer"/>s that are currently focused on this <see cref="UnityEngine.GameObject"/>
26-
/// </summary>
27-
List<IMixedRealityPointer> Focusers { get; }
28-
2914
/// <summary>
3015
/// The Focus Enter event is raised on this <see cref="UnityEngine.GameObject"/> whenever a <see cref="IMixedRealityPointer"/>'s focus enters this <see cref="UnityEngine.GameObject"/>'s <see cref="UnityEngine.Collider"/>.
3116
/// </summary>

0 commit comments

Comments
 (0)