Skip to main content
Version: 21 Aug 2024

MLInput

NameSpace: LegacySupport

Public Methods

MLResult StartBuzz

public static MLResult StartBuzz(
ushort startHz,
ushort endHz,
uint durationMs,
byte amplitude
)

Parameters

TypeNameDescription
ushortstartHz
ushortendHz
uintdurationMs
byteamplitude

MLResult StartCustomPattern

public static MLResult StartCustomPattern(
List< InputSubsystem.Extensions.Haptics.NativeBindings.MLInputCustomHaptics > hapticsList
)

Parameters

TypeNameDescription
List< InputSubsystem.Extensions.Haptics.NativeBindings.MLInputCustomHaptics >hapticsListA structure containing information about the Buzz command and/or pre-defined pattern to be played. A custom haptics pattern can be played by combining Buzz haptic command and/or a pre-defined pattern, this structure will hold info of a pattern to be added to the custom haptics array.

MLResult StartPredefined

public static MLResult StartPredefined(
PreDefinedPatternType patternType
)

Parameters

TypeNameDescription
PreDefinedPatternTypepatternType

MLResult Stop

public static MLResult Stop()

Public Enums

CustomHapticsType

EnumeratorValueDescription
None
Buzz
Predefined

PreDefinedPatternType

EnumeratorValueDescription
A
B
C