Haptics
Public Methods
MLResult StartBuzz
Starts a buzz pattern.
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 StartPreDefined
Starts a predefined pattern.
public static MLResult StartPreDefined(
PreDefined.Type type
)
Parameters
| Type | Name | Description |
|---|---|---|
| PreDefined.Type | type | Predefined haptics pattern types. |
MLResult Stop
Stops playing the current haptic pattern.
public static MLResult Stop()
Public Enums
Type
Custom haptics pattern types.
| Enumerator | Value | Description |
|---|---|---|
| Buzz | 1 | Pattern is a buzz command. |
| PreDefined | Pattern is a pre-defined pattern. |