ActionInput QML Type
QML frontend for the Qt3DInput::QActionInput C++ class. 更多...
Import Statement: | import Qt3D.Input 2.0 |
开始支持版本: | Qt 5.7 |
Instantiates: | QActionInput |
属性
- buttons : list<int>
- sourceDevice : AbstractPhysicalDevice
信号
- void buttonsChanged(const QVector<int> &buttons)
- void sourceDeviceChanged()
详细描述
Links a physical device and selected buttons on it which can trigger this action.
Each Action input can be triggered by one or many buttons on a source device
ActionInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_A] }
ActionInput { sourceDevice: keyboardSourceDevice buttons: [Qt.Key_A,Qt.Key_B] }
属性
sourceDevice : AbstractPhysicalDevice |
The current source device of the ActionInput
信号
This signal is emitted when the buttons associated with the action input is changed.
The corresponding handler is onbuttonsChanged
This signal is emitted when the source device associated with the action input is changed.
The corresponding handler is onSourceDeviceChanged