コード例 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="inputAction"></param>
 /// <param name="unityEvent"></param>
 public InputActionEventPair(MixedRealityInputAction inputAction, UnityEvent unityEvent)
 {
     this.inputAction = inputAction;
     this.unityEvent  = unityEvent;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
ファイル: SpeechCommands.cs プロジェクト: jamcar23/XRTK-Core
 /// <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;
 }
コード例 #4
0
 public bool Equals(MixedRealityInputAction other)
 {
     return(Id == other.Id &&
            AxisConstraint == other.AxisConstraint);
 }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
 /// <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;
 }
コード例 #8
0
 /// <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;
 }
コード例 #9
0
 /// <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;
 }