ActionInput QML Type

QML frontend for the Qt3DInput::QActionInput C++ 类。 更多...

导入语句: import Qt3D.Input 2.15
Since: Qt 5.7
实例化: QActionInput

特性

信号

详细描述

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]
}
					

特性文档编制

buttons : list < int >

The Buttons that can trigger this Action.


sourceDevice : AbstractPhysicalDevice

The current source device of the ActionInput


信号文档编制

buttonsChanged (const QVector < int > & buttons )

此信号被发射当 buttons associated with the action input is changed.

相应处理程序是 onbuttonsChanged

注意: 相应处理程序是 onButtonsChanged .


sourceDeviceChanged ()

This signal is emitted when the source device associated with the action input is changed.

相应处理程序是 onSourceDeviceChanged

注意: 相应处理程序是 onSourceDeviceChanged .