QInputDeviceIntegration Class

class Qt3DInput::QInputDeviceIntegration

ゲームコントローラのような新しい入力メソッドを定義するための抽象基底クラス。詳細...

ヘッダー #include <QInputDeviceIntegration>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
を継承する: QObject
ステータス非推奨

パブリック関数

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

保護された関数

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

詳細説明

メンバ関数ドキュメント

[explicit 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)

統合がaspect で作成された後、InputAspect オブジェクトによって呼び出されます。

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

QInputDeviceIntegration::inputAspect InputDeviceIntegration に関連付けられた入力アスペクトを返します。

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

このQInputDeviceIntegration に関連する場合、与えられたid で特定されるQAbstractPhysicalDevice を返す。

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

このQInputDeviceIntegration に関連する物理デバイスのノード ID のリストを返す。

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

このフロントエンド実装に対応するバックエンドクラスをmetaObjectfunctor で登録します。

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