Class LeapMotionDeviceManagerProfile
The profile for the Leap Motion Device Manager. The settings for this profile can be viewed if the Leap Motion Device Manager input data provider is added to the MRTK input configuration profile.
Namespace: Microsoft.MixedReality.Toolkit.LeapMotion.Input
Assembly: cs.temp.dll.dll
Syntax
public class LeapMotionDeviceManagerProfile : BaseMixedRealityProfile
Properties
EnterPinchDistance
The distance between the index finger tip and the thumb tip required to enter the pinch/air tap selection gesture. The pinch gesture enter will be registered for all values less than the EnterPinchDistance. The default EnterPinchDistance value is 0.02 and must be between 0.015 and 0.1.
Declaration
public float EnterPinchDistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
ExitPinchDistance
The minimum distance between the index finger tip and the thumb tip required to exit the pinch/air tap gesture to deselect. The distance between the thumb and the index tip must be greater than the ExitPinchDistance to raise the OnInputUp event
Declaration
public float ExitPinchDistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
LeapControllerOffset
Adds an offset to the game object with LeapServiceProvider attached. This offset is only applied if the leapControllerOrientation is LeapControllerOrientation.Desk and is necessary for the hand to appear in front of the main camera. If the leap controller is on the desk, the LeapServiceProvider is added to the scene instead of the LeapXRServiceProvider. The anchor point for the hands is the position of the game object with the LeapServiceProvider attached.
Declaration
public Vector3 LeapControllerOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
LeapControllerOrientation
The location of the leap motion controller. LeapControllerOrientation.Headset indicates the controller is mounted on a headset. LeapControllerOrientation.Desk indicates the controller is placed flat on desk. The default value is set to LeapControllerOrientation.Headset.
Declaration
public LeapControllerOrientation LeapControllerOrientation { get; }
Property Value
Type | Description |
---|---|
LeapControllerOrientation |