Class MagicLeapController
Inherited Members
InputDevice.InvalidDeviceId
InputDevice.MakeCurrent()
InputDevice.ExecuteCommand<TCommand>(ref TCommand)
InputDevice.ExecuteCommand(InputDeviceCommand*)
InputDevice.description
InputDevice.enabled
InputDevice.canRunInBackground
InputDevice.added
InputDevice.native
InputDevice.deviceId
InputDevice.lastUpdateTime
InputDevice.allControls
InputDevice.all
InputControl.ToString()
InputControl.EvaluateMagnitude()
InputControl.RefreshConfigurationIfNeeded()
InputControl.RefreshConfiguration()
InputControl.displayName
InputControl.device
InputControl.children
InputControl.aliases
InputControl.currentStatePtr
InputControl.defaultStatePtr
Namespace: UnityEngine.XR.MagicLeap
Assembly: UnityEngine.XR.MagicLeap.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "MagicLeap Controller")]
public class MagicLeapController : XRController
Properties
bumper
Declaration
[Preserve]
[InputControl(displayName = "Bumper Axis")]
public AxisControl bumper { get; }
Property Value
Type | Description |
---|---|
AxisControl |
bumperButton
Declaration
[Preserve]
[InputControl(displayName = "Bumper Button")]
public ButtonControl bumperButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
calibrationAccuracy
Declaration
[Preserve]
[InputControl(displayName = "Calibration Accuracy")]
public IntegerControl calibrationAccuracy { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
dof
Declaration
[Preserve]
[InputControl(displayName = "Degrees of Freedom")]
public IntegerControl dof { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
menu
Declaration
[Preserve]
[InputControl(displayName = "Menu")]
public ButtonControl menu { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
touchpad1Force
Declaration
[Preserve]
[InputControl(displayName = "Touchpad 1 Force")]
public AxisControl touchpad1Force { get; }
Property Value
Type | Description |
---|---|
AxisControl |
touchpad1Position
Declaration
[Preserve]
[InputControl(displayName = "Touchpad 1 Position")]
public Vector2Control touchpad1Position { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
touchpad1Pressed
Declaration
[Preserve]
[InputControl(displayName = "Touchpad 1 Pressed")]
public ButtonControl touchpad1Pressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
touchpad2Force
Declaration
[Preserve]
[InputControl(displayName = "Touchpad 2 Force")]
[Obsolete("This feature is no longer available as Magic Leap does not support Secondary Touch.")]
public AxisControl touchpad2Force { get; }
Property Value
Type | Description |
---|---|
AxisControl |
touchpad2Position
Declaration
[Preserve]
[InputControl(displayName = "Touchpad 2 Position")]
[Obsolete("This feature is no longer available as Magic Leap does not support Secondary Touch.")]
public Vector2Control touchpad2Position { get; }
Property Value
Type | Description |
---|---|
Vector2Control |
touchpad2Pressed
Declaration
[Preserve]
[InputControl(displayName = "Touchpad 2 Pressed")]
[Obsolete("This feature is no longer available as Magic Leap does not support Secondary Touch.")]
public ButtonControl touchpad2Pressed { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
trigger
Declaration
[Preserve]
[InputControl(displayName = "Trigger Axis")]
public AxisControl trigger { get; }
Property Value
Type | Description |
---|---|
AxisControl |
triggerButton
Declaration
[Preserve]
[InputControl(displayName = "Trigger Button")]
public ButtonControl triggerButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
type
Declaration
[Preserve]
[InputControl(displayName = "Input Control Type")]
public IntegerControl type { get; }
Property Value
Type | Description |
---|---|
IntegerControl |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
StartLEDEffect(LEDEffect, LEDSpeed, LEDPattern, LEDColor, uint)
Declaration
public bool StartLEDEffect(LEDEffect ledEffect, LEDSpeed ledSpeed, LEDPattern ledPattern, LEDColor ledColor, uint durationMs)
Parameters
Type | Name | Description |
---|---|---|
LEDEffect | ledEffect | |
LEDSpeed | ledSpeed | |
LEDPattern | ledPattern | |
LEDColor | ledColor | |
uint | durationMs |
Returns
Type | Description |
---|---|
bool |
StartLEDPattern(LEDPattern, LEDColor, uint)
Declaration
public bool StartLEDPattern(LEDPattern ledPattern, LEDColor ledColor, uint durationMs)
Parameters
Type | Name | Description |
---|---|---|
LEDPattern | ledPattern | |
LEDColor | ledColor | |
uint | durationMs |
Returns
Type | Description |
---|---|
bool |
StartVibe(VibePattern, VibeIntensity)
Declaration
public bool StartVibe(VibePattern pattern, VibeIntensity vibeIntensity)
Parameters
Type | Name | Description |
---|---|---|
VibePattern | pattern | |
VibeIntensity | vibeIntensity |
Returns
Type | Description |
---|---|
bool |