/// <summary>
 /// Constructor.
 /// </summary>
 public MicrosoftArticulatedHand(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
     : base(trackingState, controllerHandedness, inputSource, interactions, new ArticulatedHandDefinition(inputSource, controllerHandedness))
 {
     handDefinition   = Definition as ArticulatedHandDefinition;
     handMeshProvider = controllerHandedness == Handedness.Left ? OpenXRHandMeshProvider.Left : OpenXRHandMeshProvider.Right;
     handMeshProvider?.SetInputSource(inputSource);
     handJointProvider = new OpenXRHandJointProvider(controllerHandedness);
 }
        public HPMotionController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
            : base(trackingState, controllerHandedness, inputSource, interactions)
        {
#if HP_CONTROLLER_ENABLED
            InputHandler = new HPMotionControllerInputHandler(controllerHandedness, inputSource, Interactions);
#endif
            controllerDefinition = new HPMotionControllerDefinition(inputSource, controllerHandedness);
        }
Exemple #3
0
 public HPMotionControllerInputHandler(Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
 {
     ControllerHandedness = controllerHandedness;
     InputSource          = inputSource;
     Interactions         = interactions;
 }