QAbstractPhysicalDeviceProxy Class

class Qt3DInput::QAbstractPhysicalDeviceProxy

Qt3DInput::QAbstractPhysicalDeviceProxy 実際の Qt3DInput::QQAbstractPhysicalDevice デバイスのプロキシとして動作します。詳細...

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

パブリック関数

QString deviceName() const
Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status() const

シグナル

void statusChanged(Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status)

詳細説明

Qt3DInput::QAbstractPhysicalDeviceProxy を使用すると、物理デバイスをユーザーに公開しやすくなります。これは、その名前に基づいて軸とボタンをイントロスペクトする必要性を軽減します。

通常は、デバイス名を設定できるようにサブクラス化し、ターゲットとするデバイスのさまざまな軸とボタンのための列挙型を定義することによって使用されます。

実行時には、デバイス名に一致する実際のデバイスが作成できたかどうかを反映するために、status プロパティが更新されます。

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