Skip to main content
Version: 21 Aug 2024

MagicLeapInputs

Inherits from:
IInputActionCollection2,
IDisposable

Public Fields

MagicLeapScheme


public InputControlScheme MagicLeapScheme { get; set; }


asset


public InputActionAsset asset { get; set; }


bindingMask


public InputBinding bindingMask { get; set; }


devices


public ReadOnlyArray< InputDevice > devices { get; set; }


Public Methods

bool Contains

public bool Contains(
InputAction action
)

Parameters

TypeNameDescription
InputActionaction

void Disable

public void Disable()

void Dispose

public void Dispose()

void Enable

public void Enable()

InputAction FindAction

public InputAction FindAction(
string actionNameOrId,
bool throwIfNotFound =false
)

Parameters

TypeNameDescription
stringactionNameOrId
boolthrowIfNotFound

int FindBinding

public int FindBinding(
InputBinding bindingMask,
out InputAction action
)

Parameters

TypeNameDescription
InputBindingbindingMask
out InputActionaction

IEnumerator< InputAction > GetEnumerator

public IEnumerator< InputAction > GetEnumerator()

MagicLeapInputs

public MagicLeapInputs()

Public Attributes

Controller


public ControllerActions Controller => new ControllerActions(this);


Eyes


public EyesActions Eyes => new EyesActions(this);


HMD


public HMDActions HMD => new HMDActions(this);


LeftHand


public LeftHandActions LeftHand => new LeftHandActions(this);


RightHand


public RightHandActions RightHand => new RightHandActions(this);


bindings


public IEnumerable< InputBinding > bindings => asset.bindings;


controlSchemes


public ReadOnlyArray< InputControlScheme > controlSchemes => asset.controlSchemes;