QAbstractPhysicalDevice Class
(Qt3DInput::QAbstractPhysicalDevice)QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices. More...
Header: | #include <QAbstractPhysicalDevice> |
qmake: | QT += 3dinput |
Since: | Qt 5.6 |
Instantiated By: | AbstractPhysicalDevice |
Inherits: | Qt3DCore::QNode |
Inherited By: |
Public Functions
QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr) | |
void | addAxisSetting(QAxisSetting *axisSetting) |
virtual int | axisCount() const |
virtual int | axisIdentifier(const QString &name) const |
virtual QStringList | axisNames() const |
QVector<QAxisSetting *> | axisSettings() const |
virtual int | buttonCount() const |
virtual int | buttonIdentifier(const QString &name) const |
virtual QStringList | buttonNames() const |
void | removeAxisSetting(QAxisSetting *axisSetting) |
- 6 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject
Protected Functions
QAbstractPhysicalDevice(QAbstractPhysicalDevicePrivate &dd, Qt3DCore::QNode *parent = nullptr) |
Reimplemented Protected Functions
virtual Qt3DCore::QNodeCreatedChangeBasePtr | createNodeCreationChange() const |
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Additional Inherited Members
- 2 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
- 2 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 3 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
Member Function Documentation
QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr)
Constructs a new QAbstractPhysicalDevice instance with parent.
[protected]
QAbstractPhysicalDevice::QAbstractPhysicalDevice(QAbstractPhysicalDevicePrivate &dd, Qt3DCore::QNode *parent = nullptr)
Copy constructor.
void QAbstractPhysicalDevice::addAxisSetting(QAxisSetting *axisSetting)
Add the axisSetting axisSetting to this device.
[virtual]
int QAbstractPhysicalDevice::axisCount() const
Returns the number of axis this device has.
[virtual]
int QAbstractPhysicalDevice::axisIdentifier(const QString &name) const
Returns the integer identifer of the axis name or -1 if it does not exist on this device.
[virtual]
QStringList QAbstractPhysicalDevice::axisNames() const
Returns a list of the names of device's axis.
QVector<QAxisSetting *> QAbstractPhysicalDevice::axisSettings() const
Returns the axisSettings associated with this device.
[virtual]
int QAbstractPhysicalDevice::buttonCount() const
Returns the number of buttons this device has.
[virtual]
int QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const
Returns the integer identifer of the button name or -1 if it does not exist on this device.
[virtual]
QStringList QAbstractPhysicalDevice::buttonNames() const
Returns a list of the names of device's buttons.
[virtual protected]
Qt3DCore::QNodeCreatedChangeBasePtr QAbstractPhysicalDevice::createNodeCreationChange() const
void QAbstractPhysicalDevice::removeAxisSetting(QAxisSetting *axisSetting)
Remove the axisSetting axisSetting to this device.