QActionInput Class
class Qt3DInput::QActionInputQActionInput stores Device and Buttons used to trigger an input event. More...
Header: | #include <QActionInput> |
qmake: | QT += 3dinput |
Since: | Qt 5.7 |
Instantiated By: | ActionInput |
Inherits: | Qt3DInput::QAbstractActionInput |
This class was introduced in Qt 5.7.
Public Functions
QActionInput(Qt3DCore::QNode *parent = nullptr) | |
void | setButtons(const QVector<int> &buttons) |
Protected Functions
void | buttonsChanged(const QVector<int> &buttons) |
void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Detailed Description
Member Function Documentation
QActionInput::QActionInput(Qt3DCore::QNode *parent = nullptr)
Constructs a new QActionInput instance with parent.
[protected]
void QActionInput::buttonsChanged(const QVector<int> &buttons)
This signal is emitted when the buttons associated with the action input is changed. The buttons changed are buttons
void QActionInput::setButtons(const QVector<int> &buttons)
Set the buttons to trigger the QActionInput instance to buttons.
[protected]
void QActionInput::sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)
This signal is emitted when the source device associated with the action input is changed to sourceDevice.