Класс QInputDeviceIntegration
класс Qt3DInput::QInputDeviceIntegrationАбстрактный базовый класс, используемый для определения новых методов ввода, таких как игровые контроллеры. Подробнее...
| Заголовок: | #include <QInputDeviceIntegration> |
| CMake: | find_package(Qt6 COMPONENTS 3dinput REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| С момента: | Qt 5.5 |
| Наследует: | QObject |
Открытые функции
| виртуальный Qt3DInput::QAbstractPhysicalDevice * | createPhysicalDevice(const QString &name) = 0 |
| void | initialize(Qt3DInput::QInputAspect *aspect) |
| виртуальный QAbstractPhysicalDeviceBackendNode * | physicalDevice(Qt3DCore::QNodeId id) const = 0 |
| виртуальный QList<Qt3DCore::QNodeId> | physicalDevices() const = 0 |
Защищенные функции
| QInputDeviceIntegration(QObject *parent = nullptr) | |
| Qt3DInput::QInputAspect * | inputAspect() const |
| void | registerBackendType(const QMetaObject &metaObject, const Qt3DCore::QBackendNodeMapperPtr &functor) |
Подробное описание
Документация по членам-функциям
[protected] QInputDeviceIntegration::QInputDeviceIntegration(QObject *parent = nullptr)
Создает новый QInputDeviceIntegration с parent.
[pure virtual] Qt3DInput::QAbstractPhysicalDevice *QInputDeviceIntegration::createPhysicalDevice(const QString &name)
Создает физическое устройство, идентифицируемое по name.
Если не распознано, возвращает nullptr
void QInputDeviceIntegration::initialize(Qt3DInput::QInputAspect *aspect)
Вызывается объектом InputAspect после создания интеграции с aspect.
[protected] Qt3DInput::QInputAspect *QInputDeviceIntegration::inputAspect() const
QInputDeviceIntegration::inputAspect Возвращает Input Aspect, связанный с InputDeviceIntegration
[pure virtual] QAbstractPhysicalDeviceBackendNode *QInputDeviceIntegration::physicalDevice(Qt3DCore::QNodeId id) const
Возвращает QAbstractPhysicalDevice, идентифицируемый заданным id, если он связан с этим QInputDeviceIntegration.
[pure virtual] QList<Qt3DCore::QNodeId> QInputDeviceIntegration::physicalDevices() const
Возвращает список идентификаторов узлов для физических устройств, связанных с этим QInputDeviceIntegration.
[protected] void QInputDeviceIntegration::registerBackendType(const QMetaObject &metaObject, const Qt3DCore::QBackendNodeMapperPtr &functor)
Регистрирует соответствующий класс бэкенда для этой реализации фронтенда с metaObject и functor.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qt3dinput-qinputdeviceintegration.html