MLInput
NameSpace: LegacySupport
Public Methods
MLResult StartBuzz
public static MLResult StartBuzz(
ushort startHz,
ushort endHz,
uint durationMs,
byte amplitude
)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | startHz | |
| ushort | endHz | |
| uint | durationMs | |
| byte | amplitude |
MLResult StartCustomPattern
public static MLResult StartCustomPattern(
List< InputSubsystem.Extensions.Haptics.NativeBindings.MLInputCustomHaptics > hapticsList
)
Parameters
| Type | Name | Description |
|---|---|---|
| List< InputSubsystem.Extensions.Haptics.NativeBindings.MLInputCustomHaptics > | hapticsList | A 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
| Type | Name | Description |
|---|---|---|
| PreDefinedPatternType | patternType |
MLResult Stop
public static MLResult Stop()
Public Enums
CustomHapticsType
| Enumerator | Value | Description |
|---|---|---|
| None | ||
| Buzz | ||
| Predefined |
PreDefinedPatternType
| Enumerator | Value | Description |
|---|---|---|
| A | ||
| B | ||
| C |