Skip to main content
Version: 21 Aug 2024

MagicLeapControllerProfile

NameSpace: InteractionProfiles

This OpenXRInteractionFeature enables the use of interaction profiles in OpenXR.

Inherits from:
OpenXRInteractionFeature

Protected Methods

GetDeviceLayoutName

protected override string GetDeviceLayoutName()

GetInteractionProfileType

protected override InteractionProfileType GetInteractionProfileType()

OnSubsystemCreate

protected override void OnSubsystemCreate()

OnSubsystemDestroy

protected override void OnSubsystemDestroy()

RegisterActionMapsWithRuntime

protected override void RegisterActionMapsWithRuntime()

RegisterDeviceLayout

Registers the MagicLeapController layout with the Input System.

protected override void RegisterDeviceLayout()

UnregisterDeviceLayout

Unregisters the MagicLeapControllerProfile layout from the Input System.

protected override void UnregisterDeviceLayout()

Public Attributes

ExtensionString

Extension required for enable the Magic Leap 2 Controller Interaction Profile.


public const string ExtensionString = "XR_ML_ml2_controller_interaction";


FeatureId

The feature id string. This is used to give the feature a well known id for reference.


public const string FeatureId = "com.magicleap.openxr.feature.input.ml2controllerprofile";


aim

Constant for a pose interaction binding '.../input/aim/pose' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string aim = "/input/aim/pose";


grip

Constant for a pose interaction binding '.../input/grip/pose' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string grip = "/input/grip/pose";


haptic

Constant for a haptic interaction binding '.../input/output/haptic' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string haptic = "/output/haptic";


menu

Constant for a boolean interaction binding '.../input/menu/click' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string menu = "/input/menu/click";


profile

OpenXR string that represents the Interaction Profile.


public const string profile = "/interaction_profiles/ml/ml2_controller";


shoulderClick

Constant for a boolean interaction binding '.../input/shoulder/click' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string shoulderClick = "/input/shoulder/click";


trackpad

Constant for a Vector2 interaction binding '.../input/trackpad' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string trackpad = "/input/trackpad";


trackpadClick

Constant for a boolean interaction binding '.../input/trackpad/click' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string trackpadClick = "/input/trackpad/click";


trackpadForce

Constant for a boolean interaction binding '.../input/trackpad/force' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string trackpadForce = "/input/trackpad/force";


trackpadTouch

Constant for a boolean interaction binding '.../input/trackpad/touch' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string trackpadTouch = "/input/trackpad/touch";


trigger

Constant for a boolean interaction binding '.../input/trigger/value' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string trigger = "/input/trigger/value";


triggerClick

Constant for a boolean interaction binding '.../input/trigger/click' OpenXR Input Binding. Used by input subsystem to bind actions to physical inputs.


public const string triggerClick = "/input/trigger/click";