QInputDeviceIntegration Class

class Qt3DInput::QInputDeviceIntegration

Abstrakte Basisklasse zur Definition neuer Eingabemethoden, wie z. B. Game-Controller. Mehr...

Kopfzeile: #include <QInputDeviceIntegration>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
Vererbt: QObject
Status: Veraltet

Öffentliche Funktionen

virtual Qt3DInput::QAbstractPhysicalDevice *createPhysicalDevice(const QString &name) = 0
void initialize(Qt3DInput::QInputAspect *aspect)
virtual QAbstractPhysicalDeviceBackendNode *physicalDevice(Qt3DCore::QNodeId id) const = 0
virtual QList<Qt3DCore::QNodeId> physicalDevices() const = 0

Geschützte Funktionen

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

Detaillierte Beschreibung

Dokumentation der Mitgliedsfunktionen

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

Erzeugt eine neue QInputDeviceIntegration mit parent.

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

Erstellen Sie das durch name identifizierte physische Gerät.

Falls nicht erkannt, wird nullptr zurückgegeben

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

Wird vom InputAspect-Objekt aufgerufen, nachdem die Integration mit aspect erstellt worden ist.

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

QInputDeviceIntegration::inputAspect Gibt den mit der InputDeviceIntegration verbundenen Input-Aspect zurück

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

Gibt das QAbstractPhysicalDevice zurück, das durch das angegebene id identifiziert wird, wenn es mit diesem QInputDeviceIntegration verbunden ist.

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

Gibt die Liste der Knoten-IDs für physische Geräte zurück, die mit diesem QInputDeviceIntegration verbunden sind.

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

Registriert eine entsprechende Backend-Klasse für diese Frontend-Implementierung mit metaObject und functor.

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