/// <summary> /// Constructor. /// </summary> /// <param name="baseAction">The Base Action that the rule will listen to.</param> /// <param name="ruleAction">The Action to raise if the criteria is met.</param> /// <param name="criteria">The criteria to check against for determining if the action should be raised.</param> public InputActionRuleVectorAxis(MixedRealityInputAction baseAction, MixedRealityInputAction ruleAction, Vector3 criteria) { this.baseAction = baseAction; this.ruleAction = ruleAction; this.criteria = criteria; }
/// <summary> /// Constructor. /// </summary> /// <param name="baseAction">The Base Action that the rule will listen to.</param> /// <param name="ruleAction">The Action to raise if the criteria is met.</param> /// <param name="criteria">The criteria to check against for determining if the action should be raised.</param> public InputActionRuleDigital(MixedRealityInputAction baseAction, MixedRealityInputAction ruleAction, bool criteria) { this.baseAction = baseAction; this.ruleAction = ruleAction; this.criteria = criteria; }
public bool Equals(MixedRealityInputAction other) { return(Id == other.Id && AxisConstraint == other.AxisConstraint); }
/// <summary> /// Constructor. /// </summary> /// <param name="baseAction">The Base Action that the rule will listen to.</param> /// <param name="ruleAction">The Action to raise if the criteria is met.</param> /// <param name="criteria">The criteria to check against for determining if the action should be raised.</param> public InputActionRulePoseAxis(MixedRealityInputAction baseAction, MixedRealityInputAction ruleAction, MixedRealityPose criteria) { this.baseAction = baseAction; this.ruleAction = ruleAction; this.criteria = criteria; }
/// <summary> /// Constructor. /// </summary> /// <param name="description"></param> /// <param name="gestureType"></param> /// <param name="action"></param> public MixedRealityGestureMapping(string description, GestureInputType gestureType, MixedRealityInputAction action) { this.description = description; this.gestureType = gestureType; this.action = action; }
/// <summary> /// Constructor. /// </summary> /// <param name="baseAction">The Base Action that the rule will listen to.</param> /// <param name="ruleAction">The Action to raise if the criteria is met.</param> /// <param name="criteria">The criteria to check against for determining if the action should be raised.</param> public InputActionRuleSingleAxis(MixedRealityInputAction baseAction, MixedRealityInputAction ruleAction, float criteria) { this.baseAction = baseAction; this.ruleAction = ruleAction; this.criteria = criteria; }
/// <summary> /// Constructor. /// </summary> /// <param name="inputAction"></param> /// <param name="unityEvent"></param> public InputActionEventPair(MixedRealityInputAction inputAction, UnityEvent unityEvent) { this.inputAction = inputAction; this.unityEvent = unityEvent; }
/// <summary> /// Constructor. /// </summary> /// <param name="keyword">The Keyword.</param> /// <param name="keyCode">The KeyCode.</param> /// <param name="action">The Action to perform when Keyword or KeyCode is recognized.</param> public SpeechCommands(string keyword, KeyCode keyCode, MixedRealityInputAction action) { this.keyword = keyword; this.keyCode = keyCode; this.action = action; }
/// <summary> /// Constructor. /// </summary> /// <param name="baseAction">The Base Action that the rule will listen to.</param> /// <param name="ruleAction">The Action to raise if the criteria is met.</param> /// <param name="criteria">The criteria to check against for determining if the action should be raised.</param> public InputActionRuleQuaternionAxis(MixedRealityInputAction baseAction, MixedRealityInputAction ruleAction, Quaternion criteria) { this.baseAction = baseAction; this.ruleAction = ruleAction; this.criteria = criteria; }