QInputDeviceIntegration Class

(Qt3DInput::QInputDeviceIntegration)

Abstract base class used to define new input methods such as game controllers More...

Header: #include <QInputDeviceIntegration>
qmake: QT += 3dinput
Since: Qt 5.5
Inherits: QObject

Public Functions

virtual QAbstractPhysicalDevice *createPhysicalDevice(const QString &name) = 0
virtual QStringList deviceNames() const = 0
void initialize(Qt3DInput::QInputAspect *aspect)
virtual QVector<Qt3DCore::QAspectJobPtr> jobsToExecute(qint64 time) = 0
virtual QAbstractPhysicalDeviceBackendNode *physicalDevice(Qt3DCore::QNodeId id) const = 0
virtual QVector<Qt3DCore::QNodeId> physicalDevices() const = 0
  • 32 public functions inherited from QObject

Protected Functions

QInputDeviceIntegration(QObject *parent = nullptr)
QInputAspect *inputAspect() const
void registerBackendType(const Qt3DCore::QBackendNodeMapperPtr &functor)
void registerBackendType(const QMetaObject &metaObject, const Qt3DCore::QBackendNodeMapperPtr &functor)
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

Abstract base class used to define new input methods such as game controllers

Member Function Documentation

[protected] QInputDeviceIntegration::QInputDeviceIntegration(QObject *parent = nullptr)

Create a new QInputDeviceIntegration with parent /a parent

[pure virtual] QAbstractPhysicalDevice *QInputDeviceIntegration::createPhysicalDevice(const QString &name)

Create the Physical device identified by name.

If not recognized return Q_NULLPTR

[pure virtual] QStringList QInputDeviceIntegration::deviceNames() const

void QInputDeviceIntegration::initialize(Qt3DInput::QInputAspect *aspect)

[protected] QInputAspect *QInputDeviceIntegration::inputAspect() const

QInputDeviceIntegration::inputAspect Returns the Input Aspect associated with the InputDeviceIntegration

[pure virtual] QVector<Qt3DCore::QAspectJobPtr> QInputDeviceIntegration::jobsToExecute(qint64 time)

[pure virtual] QAbstractPhysicalDeviceBackendNode *QInputDeviceIntegration::physicalDevice(Qt3DCore::QNodeId id) const

Returns the QAbstractPhysicalDevice identified by the given id if it is related to this QInputDeviceIntegration.

[pure virtual] QVector<Qt3DCore::QNodeId> QInputDeviceIntegration::physicalDevices() const

Returns the list of node ids for physical devices associated with this QInputDeviceIntegration.

[protected] void QInputDeviceIntegration::registerBackendType(const Qt3DCore::QBackendNodeMapperPtr &functor)

[protected] void QInputDeviceIntegration::registerBackendType(const QMetaObject &metaObject, const Qt3DCore::QBackendNodeMapperPtr &functor)

Register a corresponding backend class for this front end implementation