ActionInput QML Type

Qt3DInput::QActionInput C++ 类的 QML 前端。更多

Import Statement: import Qt3D.Input 2.9
In C++: QActionInput
Inherits:

AbstractActionInput

Status: Deprecated

属性

信号

详细说明

链接一个物理设备及其上可触发该操作的选定按钮。

每个动作输入可由源设备上的一个或多个按钮触发

ActionInput {
  sourceDevice: keyboardSourceDevice
  buttons: [Qt.Key_A]
}
ActionInput {
  sourceDevice: keyboardSourceDevice
  buttons: [Qt.Key_A,Qt.Key_B]
}

属性文档

buttons : list<int>

可触发此操作的按钮。


sourceDevice : AbstractPhysicalDevice

当前源设备的ActionInput


信号文档

buttonsChanged(const QList<int> &buttons)

当与动作输入相关联的buttons 发生变化时,就会发出该信号。

相应的处理程序是onbuttonsChanged

注: 相应的处理程序是onButtonsChanged


sourceDeviceChanged()

当与操作输入相关联的源设备发生变化时,会发出该信号。

相应的处理程序是onSourceDeviceChanged

注: 相应的处理程序是onSourceDeviceChanged


© 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.