ActionInput QML Type
Qt3DInput::QActionInput C++ 类的 QML 前端。更多内容...
| Import Statement: | import Qt3D.Input 2.12 |
| In C++: | QActionInput |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- buttons : list<int>
- sourceDevice : AbstractPhysicalDevice
信号
- buttonsChanged(const QList<int> &buttons)
- sourceDeviceChanged()
详细说明
将一个物理设备与其上可触发此操作的选定按钮关联起来。
每个“操作”输入均可由源设备上的一个或多个按钮触发
ActionInput {
sourceDevice: keyboardSourceDevice
buttons: [Qt.Key_A]
}ActionInput {
sourceDevice: keyboardSourceDevice
buttons: [Qt.Key_A,Qt.Key_B]
}属性文档
buttons : list<int>
可以触发此操作的按钮。
sourceDevice : AbstractPhysicalDevice
信号文档
buttonsChanged(const QList<int> &buttons)
当与操作输入关联的buttons 发生变化时,会发出此信号。
相应的处理程序是onbuttonsChanged
注意: 相应的处理程序 是onButtonsChanged 。
sourceDeviceChanged()
当与操作输入关联的源设备发生变化时,会发出此信号。
相应的处理程序是onSourceDeviceChanged
注意: 相应的处理程序 是onSourceDeviceChanged 。
© 2026 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.