ActionInput QML Type

QML frontend for the Qt3DInput::QActionInput C++ class. More...

Import Statement: import Qt3D.Input 2.12
Since: Qt 5.7
Instantiates: QActionInput

Properties

Signals

Detailed Description

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

Property Documentation

buttons : list<int>

The Buttons that can trigger this Action.


sourceDevice : AbstractPhysicalDevice

The current source device of the ActionInput


Signal Documentation

buttonsChanged(const QVector<int> &buttons)

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

The corresponding handler is onbuttonsChanged


sourceDeviceChanged()

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

The corresponding handler is onSourceDeviceChanged


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