QInputDeviceIntegration Class

class Qt3DInput::QInputDeviceIntegration

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

Header: #include <QInputDeviceIntegration>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
Since: Qt 5.5
Inherits: QObject

Public Functions

virtual Qt3DInput::QAbstractPhysicalDevice *createPhysicalDevice(const QString &name) = 0
virtual QStringList deviceNames() const = 0
void initialize(Qt3DInput::QInputAspect *aspect)
virtual std::vector<Qt3DCore::QAspectJobPtr> jobsToExecute(qint64 time) = 0
virtual QAbstractPhysicalDeviceBackendNode *physicalDevice(Qt3DCore::QNodeId id) const = 0
virtual QList<Qt3DCore::QNodeId> physicalDevices() const = 0

Protected Functions

QInputDeviceIntegration(QObject *parent = nullptr)
Qt3DInput::QInputAspect *inputAspect() const
void registerBackendType(const Qt3DCore::QBackendNodeMapperPtr &functor)
void registerBackendType(const QMetaObject &metaObject, const Qt3DCore::QBackendNodeMapperPtr &functor)

Detailed Description

Member Function Documentation

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

Creates a new QInputDeviceIntegration with parent.

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

Create the Physical device identified by name.

If not recognized return nullptr

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

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

Called by the InputAspect object after the integration has been created with aspect.

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

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

[pure virtual] std::vector<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] QList<Qt3DCore::QNodeId> QInputDeviceIntegration::physicalDevices() const

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

[protected] template <typename Frontend> void QInputDeviceIntegration::registerBackendType(const Qt3DCore::QBackendNodeMapperPtr &functor)

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

Registers a corresponding backend class for this front end implementation with metaObject and functor.

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