Skip to main content
Version: 14 Oct 2024

NativeBindings

Inherits from:
MagicLeapNativeBindings

Public Methods

MLResult.Code MLInputCreate

public MLResult.Code MLInputCreate(
out ulong handle
)

Parameters

TypeNameDescription
out ulonghandle

MLResult.Code MLInputCreateCustomHapticsPattern

public MLResult.Code MLInputCreateCustomHapticsPattern(
ulong handle,
ref MLInputCustomHapticsInfo info,
ref uint patternId
)

Parameters

TypeNameDescription
ulonghandle
ref MLInputCustomHapticsInfoinfo
ref uintpatternId

MLResult.Code MLInputDeleteCustomHapticsPattern

public MLResult.Code MLInputDeleteCustomHapticsPattern(
ulong handle,
uint patternId
)

Parameters

TypeNameDescription
ulonghandle
uintpatternId

MLResult.Code MLInputStartControllerFeedbackBuzzCommand

public MLResult.Code MLInputStartControllerFeedbackBuzzCommand(
ulong handle,
byte controllerId,
in MLInputBuzzCommand command
)

Parameters

TypeNameDescription
ulonghandle
bytecontrollerId
in MLInputBuzzCommandcommand

MLResult.Code MLInputStartControllerFeedbackCustomHapticsPattern

public MLResult.Code MLInputStartControllerFeedbackCustomHapticsPattern(
ulong handle,
byte controllerId,
uint patternId
)

Parameters

TypeNameDescription
ulonghandle
bytecontrollerId
uintpatternId

MLResult.Code MLInputStartControllerFeedbackPreDefinedPattern

public MLResult.Code MLInputStartControllerFeedbackPreDefinedPattern(
ulong handle,
byte controllerId,
ref MLInputPreDefinedPattern pattern
)

Parameters

TypeNameDescription
ulonghandle
bytecontrollerId
ref MLInputPreDefinedPatternpattern

MLResult.Code MLInputStopControllerFeedback

public MLResult.Code MLInputStopControllerFeedback(
ulong handle,
byte controllerId
)

Parameters

TypeNameDescription
ulonghandle
bytecontrollerId