Qt3DInput::QAbstractPhysicalDevice Class
class Qt3DInput::QAbstractPhysicalDeviceQAbstractPhysicalDevice は、Qt3d が任意の入力デバイスとやり取りするために使用する基底クラスです。詳細...
| ヘッダー: | #include <qabstractphysicaldevice.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| QML内: | AbstractPhysicalDevice |
| 継承元: | Qt3DCore::QNode |
| 継承元: | |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
パブリック関数
| QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr) | |
| void | addAxisSetting(Qt3DInput::QAxisSetting *axisSetting) |
| virtual int | axisCount() const |
| virtual int | axisIdentifier(const QString &name) const |
| virtual QStringList | axisNames() const |
| QList<Qt3DInput::QAxisSetting *> | axisSettings() const |
| virtual int | buttonCount() const |
| virtual int | buttonIdentifier(const QString &name) const |
| virtual QStringList | buttonNames() const |
| void | removeAxisSetting(Qt3DInput::QAxisSetting *axisSetting) |
メンバー関数のドキュメント
[explicit] QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr)
parent を使用して、新しいQAbstractPhysicalDeviceインスタンスを作成します。
void QAbstractPhysicalDevice::addAxisSetting(Qt3DInput::QAxisSetting *axisSetting)
このデバイスに、軸設定「axisSetting 」を追加してください。
[virtual] int QAbstractPhysicalDevice::axisCount() const
このデバイスが持つ軸の数を返します。
[virtual] int QAbstractPhysicalDevice::axisIdentifier(const QString &name) const
軸の整数識別子を返します。name 。このデバイスにその軸が存在しない場合は-1を返します。
[virtual] QStringList QAbstractPhysicalDevice::axisNames() const
デバイスの軸の名前の一覧を返します。
QList<Qt3DInput::QAxisSetting *> QAbstractPhysicalDevice::axisSettings() const
このデバイスに関連付けられている axisSettings を返します。
[virtual] int QAbstractPhysicalDevice::buttonCount() const
このデバイスに搭載されているボタンの数を返します。
[virtual] int QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const
ボタンname の整数識別子を返します。このデバイス上にそのボタンが存在しない場合は-1を返します。
[virtual] QStringList QAbstractPhysicalDevice::buttonNames() const
デバイスのボタンの名前の一覧を返します。
void QAbstractPhysicalDevice::removeAxisSetting(Qt3DInput::QAxisSetting *axisSetting)
このデバイスから「axisSettingaxisSetting 」を削除してください。
© 2026 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.