XrSimpleHapticEffect QML Type

允许使用振幅、持续时间和频率设置控制器触觉。更多

Import Statement: import QtQuick3D.Xr
Since: Qt 6.9
Inherits:

XrHapticEffect

Status: Technical Preview

属性

详细说明

XrSimpleHapticEffect {
    amplitude: 0.5
    duration: 300
    frequency: 3000
}

另请参见 XrHapticFeedback

属性文档

amplitude() : bool [default: 0.5]

定义效果振动的振幅。可接受的值范围为 0.0 至 1.0。


duration() : bool [default: 30]

以毫秒为单位定义触觉效果的持续时间。


frequency() : bool [default: 3000]

以赫兹为单位定义触觉效果的频率


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.