mixedreality/com.microsoft.mixedreality..../Core/Interfaces/InputSystem/IInputActionRule.cs

28 lines
784 B
C#

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.MixedReality.Toolkit.Input
{
/// <summary>
/// Interface for defining Input Action Rules
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IInputActionRule<T>
{
/// <summary>
/// The Base Action that the rule will listen to.
/// </summary>
MixedRealityInputAction BaseAction { get; }
/// <summary>
/// The Action to raise if the criteria is met.
/// </summary>
MixedRealityInputAction RuleAction { get; }
/// <summary>
/// The criteria to check against for determining if the action should be raised.
/// </summary>
T Criteria { get; }
}
}