QActionInput Class
(Qt3DInput::QActionInput)QActionInput 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 | 
Properties
- buttons : QVector<int>
- sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
Public Functions
| QActionInput(Qt3DCore::QNode *parent = nullptr) | |
| QVector<int> | buttons() const | 
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const | 
Public Slots
| void | setButtons(const QVector<int> &buttons) | 
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) | 
Signals
| void | buttonsChanged(const QVector<int> &buttons) | 
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) | 
Detailed Description
QActionInput stores Device and Buttons used to trigger an input event.
Property Documentation
buttons : QVector<int>
Holds the buttons that can trigger this Action.
Access functions:
| QVector<int> | buttons() const | 
| void | setButtons(const QVector<int> &buttons) | 
Notifier signal:
| void | buttonsChanged(const QVector<int> &buttons) | 
sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
The current source device of the QActionInput.
Access functions:
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const | 
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) | 
Notifier signal:
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) | 
Member Function Documentation
QActionInput::QActionInput(Qt3DCore::QNode *parent = nullptr)
Constructs a new QActionInput instance with parent.
[slot] void QActionInput::setButtons(const QVector<int> &buttons)
Set the buttons to trigger the QActionInput instance to buttons.
Note: Setter function for property buttons.
See also buttons().