跳到主要内容
本页面由机器自动翻译,可能包含错误。 查看英文原文

枚举

EBhapticsDevicePosition

定义设备的类型,用于决定在哪个设备上播放的函数中。

enum class EBhapticsDevicePosition : uint8
{
Vest = 0,
ForearmL = 1,
ForearmR = 2,
Head = 3,
HandL = 4,
HandR = 5,
FootL = 6,
FootR = 7,
GloveL = 8,
GloveR = 9
}

EBhapticsGlovePlayTime

决定是否在以毫秒为单位指定的 Duration 期间直接播放手套的波形。它用作 PlayWaveform 函数的参数。

enum class EBhapticsGlovePlayTime : uint8
{
None = 0, // 0ms
FiveMS = 1, // 5ms
TenMS = 2, // 10ms
TwentyMS = 4, // 20ms
ThirtyMS = 6, // 30ms
FortyMS = 8 // 40ms
}

EBhapticsGloveShapeValue

用于在直接播放手套波形时选择波形。

  • Constant: 以电机 Intensity 指定的 Intensity 持续振动。
  • Decreasing: 以 Intensity 值开始振动,并在结束时线性递减至 Intensity 值的一半。
  • Increasing: 以 Intensity 值的一半开始振动,并在结束时线性递增至 Intensity 值。
enum class EBhapticsGloveShapeValue : uint8
{
Constant = 0,
Decreasing = 1,
Increasing = 2
};