public bool Equals(MixedRealityInputAction other)
 {
     return(Id == other.Id &&
            AxisConstraint == other.AxisConstraint);
 }
Beispiel #2
0
 /// <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="inputAction"></param>
 /// <param name="unityEvent"></param>
 public InputActionEventPair(MixedRealityInputAction inputAction, UnityEvent unityEvent)
 {
     this.inputAction = inputAction;
     this.unityEvent  = unityEvent;
 }